show access-lists ルータに設定されたすべてのアクセスリストを表示。どのインターフェースに設定されているかは表示しません。
show access-lists 110 アクセスリスト110だけを表示。どのインターフェースに設定されているかは表示しません。
show ip access-lists ルータに設定されたIPアクセスリストだけを表示
show ip interface どのインターフェースにアクセスリストが設定されているかを表示
show running-config アクセスリストと、アクセスリストが設定されているインターフェースを表示
2012年9月4日火曜日
2012年6月24日日曜日
1812j初期化と直後のコンフィグ
Router#sh run
Building configuration...
Current configuration : 1257 bytes
!
! Last configuration change at 12:50:37 UTC Sun Jun 24 2012
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
crypto pki token default removal timeout 0
!
!
dot11 syslog
ip source-route
!
!
!
!
!
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
license udi pid CISCO1812-J/K9 sn xxxxxxxxxxxxx←消去
!
!
!
!
!
!
!
!
!
interface BRI0
no ip address
encapsulation hdlc
shutdown
!
interface FastEthernet0
ip address dhcp
duplex auto
speed auto
!
interface FastEthernet1
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet2
no ip address
!
interface FastEthernet3
no ip address
!
interface FastEthernet4
no ip address
!
interface FastEthernet5
no ip address
!
interface FastEthernet6
no ip address
!
interface FastEthernet7
no ip address
!
interface FastEthernet8
no ip address
!
interface FastEthernet9
no ip address
!
interface Vlan1
no ip address
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
ip route 0.0.0.0 0.0.0.0 192.168.1.1 254
!
!
!
!
!
!
!
control-plane
!
!
!
line con 0
line aux 0
line vty 0 4
login
transport input all
!
end
Router#
2012年4月24日火曜日
Catalyst スイッチド ポート アナライザ(SPAN)の設定例
設定方法↓
Switch_A(config)#monitor session 1 source interface fastEthernet 0/1
Switch_A(config)#monitor session 1 destination interface fastEthernet 0/9
確認方法↓
Switch_A#show monitor session 1
Switch_A#show monitor session 1 detail
Switch_A(config)#monitor session 1 source interface fastEthernet 0/1
Switch_A(config)#monitor session 1 destination interface fastEthernet 0/9
確認方法↓
Switch_A#show monitor session 1
Switch_A#show monitor session 1 detail
2012年4月7日土曜日
ケーブルの選択
ネットワークデバイスを2種類のグループに分けます。
1つは、物理層、データリンク層に位置するデバイスのグループで、
もう1つはネットワーク層以上に属するデバイスのグループです。
グループ内のデバイス同士では、クロスケーブルを使用し、
異なるグループのデバイス同士では、ストレートケーブルを使用して接続します。
1つは、物理層、データリンク層に位置するデバイスのグループで、
もう1つはネットワーク層以上に属するデバイスのグループです。
グループ内のデバイス同士では、クロスケーブルを使用し、
異なるグループのデバイス同士では、ストレートケーブルを使用して接続します。
CCN○勉強法
- デバイスの設定内容を知りたいとき、どのコマンドを打ち込んで、
どんな結果が返ってくるかを紐付けて学習すること。 - シミュレーション問題とシナリオ問題が重要
- 即回答可能な択一問題は数をこなしてクリア
- 演習は「Ping-t」と「ネットワークエンジニアとして」、「暇問」が有効
- 最後は時間との勝負。模擬試験は時間を意識して行う。
- 概念に関する問題が中心なのでイメージ化が鍵
2012年4月3日火曜日
デフォゲ
ip default-gatewayコマンドはルータでルーティングが無効になっている場合,つまりルータがルータとしてではなくホストとしてしか動作していない場合のデフォルトゲートウェイを設定するためのコマンドです。ルーティングのデフォルトルートを設定するためのコマンドではありません。
スイッチ
ip default-gateway
ルーター
ip default-network [ネットワークアドレス]
ip route 0.0.0.0 0.0.0.0 [ネクストホップアドレス]
ip route 0.0.0.0 0.0.0.0 [自分の送出インターフェース]
スイッチ
ip default-gateway
ルーター
ip default-network [ネットワークアドレス]
ip route 0.0.0.0 0.0.0.0 [ネクストホップアドレス]
ip route 0.0.0.0 0.0.0.0 [自分の送出インターフェース]
2012年3月26日月曜日
RIP
(config)#router rip
(config-router)#network [クラスフルネットワークアドレス]
#show ip route
#show ip protocols
#show ip rip database
#degug ip rip database
#debug ip rip events
#debug ip rip
#degug ip packet
#no debug all
2012年3月3日土曜日
%Error opening tftp://255.255.255.255/cisconet.cfg (Socket error)
サービス設定エラー メッセージ
Cisco IOS ソフトウェアを使用して Cisco ハードウェアのブートアップを実行している場合に、時折、次のようなエラー メッセージが表示されることがあります。
%Error opening tftp://255.255.255.255/network-confg (Socket error)
%Error opening tftp://255.255.255.255/cisconet.cfg (Socket error)
%Error opening tftp://255.255.255.255/3620-confg (Socket error)
%Error opening tftp://255.255.255.255/3620.cfg (Socket error)
上記エラー メッセージは、ネットワークの Trivial File Transfer Protocol(TFTP; トリビアル ファイル転送プロトコル)サーバからサービス設定ファイルにアクセスしようとする Cisco IOS ソフトウェアに組み込まれている、デフォルトのサービス設定オプションに関連しています。
解決方法
この機能をディセーブルするには、no service config グローバル コマンドを入力します。
Router#config terminal
Enter configuration commands, one per line.
Router(config)#no service config
Router(config)#exit
Router#copy running-config startup-config
ルータの次回ブートアップ時から、エラー メッセージは表示されなくなります。
2012年2月26日日曜日
NAT
■作成
静的NAT
ip nat inside source static 10.0.0.1 171.16.60.1
ダイナミックNAT
ip nat pool DNAT 171.30.28.209 171.30.28.225 netmask 255.255.255.0
access-list 1 permit 10.0.0.0 0.0.0.255
ip nat inside source list 1 pool DNAT
NAPT
access-list 1 permit 10.1.1.0 0.0.0.255
ip nat inside source list 1 interface s0/0 overload
■適用
ip nat inside
ip nat outside
2012年2月18日土曜日
インターフェースリンク状態確認
Router#show debugging
Router#debug pppoe ?
Router#debug ppp negotiation
Router#show ip interface brief
Router#debug pppoe ?
Router#debug ppp negotiation
Router#show ip interface brief
2012年2月5日日曜日
Ciscoの小技
■IP ドメインのルックアップを停止
1812j(config)#no ip domain-lookup
上記コマンドを適用するとブラウジングできなくなるので注意
■コマンド入力中に、ログが出力されても再表示
1812j(config)#line con 0
1812j(config-line)#logging synchronous
1812j(config-line)#line vty 0 15
1812j(config-line)#logging synchronous
■コンフィグレーションモードに show コマンドを確認
1812j(config)#do show run
1812j(config)#no ip domain-lookup
上記コマンドを適用するとブラウジングできなくなるので注意
■コマンド入力中に、ログが出力されても再表示
1812j(config)#line con 0
1812j(config-line)#logging synchronous
1812j(config-line)#line vty 0 15
1812j(config-line)#logging synchronous
■コンフィグレーションモードに show コマンドを確認
1812j(config)#do show run
ACL(アクセスリスト)の作成と適用
■ACLの作成
1812j(config)#access-list 100 deny ip 0.0.0.0 0.255.255.255 any
1812j(config)#access-list 100 deny ip 10.0.0.0 0.255.255.255 any
クラスAのプライベートアドレスを拒否
1812j(config)#access-list 100 deny ip 127.0.0.0 0.255.255.255 any
ループバックアドレスを拒否
1812j(config)#access-list 100 deny ip 169.254.0.0 0.0.255.255 any
リンクローカルアドレスを拒否
1812j(config)#access-list 100 deny ip 172.16.0.0 0.15.255.255 any
クラスCのプライベートアドレスを拒否
1812j(config)#access-list 100 deny tcp any any range 137 139
1812j(config)#access-list 100 deny tcp any range 137 139 any
1812j(config)#access-list 100 deny udp any any range netbios-ns netbios-ss
1812j(config)#access-list 100 deny udp any range netbios-ns netbios-ss any
1812j(config)#access-list 100 deny tcp any any eq 445
1812j(config)#access-list 100 deny tcp any eq 445 any
1812j(config)#access-list 100 deny udp any any eq 445
1812j(config)#access-list 100 deny udp any eq 445 any
1812j(config)#access-list 100 deny tcp any any eq telnet
1812j(config)#access-list 100 permit ip any any
最後にひとつany permitを追加する。これがないと全てのパケットが破棄されてしまう。
■ACLの適用
1812j(config)#int f0
1812j(config-if)#ip access-group 100 in
1812j(config)#access-list 100 deny ip 0.0.0.0 0.255.255.255 any
1812j(config)#access-list 100 deny ip 10.0.0.0 0.255.255.255 any
クラスAのプライベートアドレスを拒否
1812j(config)#access-list 100 deny ip 127.0.0.0 0.255.255.255 any
ループバックアドレスを拒否
1812j(config)#access-list 100 deny ip 169.254.0.0 0.0.255.255 any
リンクローカルアドレスを拒否
1812j(config)#access-list 100 deny ip 172.16.0.0 0.15.255.255 any
クラスCのプライベートアドレスを拒否
1812j(config)#access-list 100 deny tcp any any range 137 139
1812j(config)#access-list 100 deny tcp any range 137 139 any
1812j(config)#access-list 100 deny udp any any range netbios-ns netbios-ss
1812j(config)#access-list 100 deny udp any range netbios-ns netbios-ss any
1812j(config)#access-list 100 deny tcp any any eq 445
1812j(config)#access-list 100 deny tcp any eq 445 any
1812j(config)#access-list 100 deny udp any any eq 445
1812j(config)#access-list 100 deny udp any eq 445 any
1812j(config)#access-list 100 deny tcp any any eq telnet
1812j(config)#access-list 100 permit ip any any
最後にひとつany permitを追加する。これがないと全てのパケットが破棄されてしまう。
■ACLの適用
1812j(config)#int f0
1812j(config-if)#ip access-group 100 in
インスペクションルールの作成と適用
1812j#config t
Enter configuration commands, one per line. End with CNTL/Z.
■ルールを作成
1812j(config)#ip inspect log drop-pkt
1812j(config)#ip inspect name FIREWALL tcp alert on audit-trail off router-traffic
1812j(config)#ip inspect name FIREWALL udp alert on audit-trail off router-traffic
1812j(config)#ip inspect name FIREWALL smtp alert on audit-trail on
1812j(config)#ip inspect name FIREWALL ssh alert on audit-trail on
1812j(config)#ip inspect name FIREWALL http alert on audit-trail on
1812j(config)#ip inspect name FIREWALL dns alert on audit-trail on
1812j(config)#ip inspect name FIREWALL pop3s audit-trail on
1812j(config)#ip inspect name FIREWALL syslog alert on audit-trail on
1812j(config)#ip inspect name FIREWALL ntp alert on audit-trail on
1812j(config)#ip inspect name FIREWALL snmp alert on audit-trail on
1812j(config)#ip inspect name FIREWALL snmptrap alert on audit-trail on
■f0に適用
1812j(config)#int f0
1812j(config-if)#ip inspect FIREWALL in
1812j(config)#end
1812j#
*Feb 5 00:32:48.768: %SYS-5-CONFIG_I: Configured from console by console
1812j#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
1812j#
Enter configuration commands, one per line. End with CNTL/Z.
■ルールを作成
1812j(config)#ip inspect log drop-pkt
1812j(config)#ip inspect name FIREWALL tcp alert on audit-trail off router-traffic
1812j(config)#ip inspect name FIREWALL udp alert on audit-trail off router-traffic
1812j(config)#ip inspect name FIREWALL smtp alert on audit-trail on
1812j(config)#ip inspect name FIREWALL ssh alert on audit-trail on
1812j(config)#ip inspect name FIREWALL http alert on audit-trail on
1812j(config)#ip inspect name FIREWALL dns alert on audit-trail on
1812j(config)#ip inspect name FIREWALL pop3s audit-trail on
1812j(config)#ip inspect name FIREWALL syslog alert on audit-trail on
1812j(config)#ip inspect name FIREWALL ntp alert on audit-trail on
1812j(config)#ip inspect name FIREWALL snmp alert on audit-trail on
1812j(config)#ip inspect name FIREWALL snmptrap alert on audit-trail on
■f0に適用
1812j(config)#int f0
1812j(config-if)#ip inspect FIREWALL in
1812j(config)#end
1812j#
*Feb 5 00:32:48.768: %SYS-5-CONFIG_I: Configured from console by console
1812j#copy run start
Destination filename [startup-config]?
Building configuration...
[OK]
1812j#
2012年2月4日土曜日
1812jでTFTPバックアップ
用意するもの
・TFTPサーバー Poor TFTP Server for WIN32
■TFTPサーバの準備
1.ダウンロードしたPoor TFTPをCドライブ直下に配置
2.保存先フォルダを指定。ここではC:\ptftpw10
3.Windowsファイアウォールを無効化
■1812jでの作業
1812j#sh flash
-#- --length-- -----date/time------ path
1 29465216 Jul 13 2009 00:03:44 +00:00 c181x-advipservicesk9-mz.151-4.M1.bin
2 2123 Jan 29 2012 12:41:40 +00:00 start-config
34545664 bytes available (29470720 bytes used)
1812j#copy c181x-advipservicesk9-mz.151-4.M1.bin tftp
Address or name of remote host []? 192.168.11.2
Destination filename [c181x-advipservicesk9-mz.151-4.M1.bin]?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29465216 bytes copied in 63.336 secs (465221 bytes/sec)
1812j#
以上で完了。
・TFTPサーバー Poor TFTP Server for WIN32
■TFTPサーバの準備
1.ダウンロードしたPoor TFTPをCドライブ直下に配置
2.保存先フォルダを指定。ここではC:\ptftpw10
3.Windowsファイアウォールを無効化
■1812jでの作業
1812j#sh flash
-#- --length-- -----date/time------ path
1 29465216 Jul 13 2009 00:03:44 +00:00 c181x-advipservicesk9-mz.151-4.M1.bin
2 2123 Jan 29 2012 12:41:40 +00:00 start-config
34545664 bytes available (29470720 bytes used)
1812j#copy c181x-advipservicesk9-mz.151-4.M1.bin tftp
Address or name of remote host []? 192.168.11.2
Destination filename [c181x-advipservicesk9-mz.151-4.M1.bin]?
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29465216 bytes copied in 63.336 secs (465221 bytes/sec)
1812j#
以上で完了。
Ciscoでパスワード復旧
■手順概要
・ROMモードで起動してコンフィグレーションレジスタを変更
・startup-configを使わずrunning-configだけで起動
・そのまま特権モードに入りstartup-configをrunning-configにコピーし設定を反映
・特権モードのパスワードを変更
・コンフィグレーションレジスタを元の0x2102に戻す
・シャットダウンされているインターフェースを起動
・現在のrunning-configをstartup-configに保存
■電源投入
System Bootstrap, Version 12.3(8r)YH13, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 2008 by cisco Systems, Inc.
C1800 platform with 262144 Kbytes of main memory with parity disabled
Readonly ROMMON initialized
program load complete, entry point: 0x80012000, size: 0xc0c0
Initializing ATA monitor library.......
program load complete, entry point: 0x80012000, size: 0xc0c0
Initializing ATA monitor library.......
■TeratermでAlt+Bでブレイクし、ROMモニターモードに移行
monitor: command "boot" aborted due to user interrupt
rommon 1 > confreg 0x2142
You must reset or power cycle for new config to take effect
rommon 2 > reset
■以後、startup-configを無視して起動するためパスワードなしで特権モードになれる
System Bootstrap, Version 12.3(8r)YH13, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 2008 by cisco Systems, Inc.
C1800 platform with 262144 Kbytes of main memory with parity disabled
Readonly ROMMON initialized
program load complete, entry point: 0x80012000, size: 0xc0c0
Initializing ATA monitor library.......
program load complete, entry point: 0x80012000, size: 0xc0c0
Initializing ATA monitor library.......
program load complete, entry point: 0x80012000, size: 0x1c198b8
Self decompressing the image : ############################################################################################################################################################################################################################################################################### [OK]
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco IOS Software, C181X Software (C181X-ADVIPSERVICESK9-M), Version 15.1(4)M1, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2011 by Cisco Systems, Inc.
Compiled Tue 14-Jun-11 16:40 by prod_rel_team
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Installed image archive
Cisco 1812-J (MPC8500) processor (revision 0x400) with 236544K/25600K bytes of memory.
Processor board ID FHK131222FY, with hardware revision 0000
10 FastEthernet interfaces
1 ISDN Basic Rate interface
1 Virtual Private Network (VPN) Module
62720K bytes of ATA CompactFlash (Read/Write)
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]:
% Please answer 'yes' or 'no'.
Would you like to enter the initial configuration dialog? [yes/no]: no
■セットアップモードで「no」を選択
Press RET down
*Feb 4 11:08:16.339: USB init complete.
*Feb 4 11:08:16.339: %LINK-3-UPDOWN: Interface FastEthernet0, changed state to down
*Feb 4 11:08:16.339: %LINK-3-UPDOWN: Interface FastEthernet1, changed state to down
*Feb 4 11:08:17.683: %SYS-6-STARTUP_CONFIG_IGNORED: System startup configuration is ignored based on the configuration register setting.
*Feb 4 11:08:54.639: %LINK-5-CHANGED: Interface BRI0, changed state to administratively down
*Feb 4 11:08:57.063: %LINK-5-CHANGED: Interface FastEthernet0, changed state to administratively down
*Feb 4 11:08:57.063: %LINK-5-CHANGED: Interface FastEthernet1, changed state to administratively down
*Feb 4 11:08:57.063: %LINK-3-UPDOWN: Interface FastEthernet2, changed state to up
*Feb 4 11:08:57.063: %LINK-3-UPDOWN: Interface FastEthernet3, changed state to up
*Feb 4 11:08:57.063: %LINK-3-UPDOWN: Interface FastEthernet4, changed state to up
*Feb 4 11:08:57.063: %LINK-3-UPDOWN: Interface FastEthernet5, changed state to up
*Feb 4 11:08:57.063: %LINK-3-UPDOWN: Interface FastEthernet6, changed state to up
*Feb 4 11:08:57.067: %LINK-3-UPDOWN: Interface FastEthernet7, changed state to up
*Feb 4 11:08:57.067: %LINK-3-UPDOWN: Interface FastEthernet8, changed state to up
*Feb 4 11:08:57.067: %LINK-3-UPDOWN: Interface FastEthernet9, changed state to up
*Feb 4 11:08:57.067: %SYS-5-RESTART: System restarted --
Cisco IOS Software, C181X Software (C181X-ADVIPSERVICESK9-M), Version 15.1(4)M1, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2011 by Cisco Systems, Inc.
Compiled Tue 14-Jun-11 16:40 by prod_rel_team
*Feb 4 11:08:57.067: %SNMP-5-COLDSTART: SNMP agent on host Router is undergoing a cold start
*Feb 4 11:08:57.095: %CRYPTO-6-ISAKMP_ON_OFF: ISAKMP is OFF
*Feb 4 11:08:57.095: %CRYPTO-6-GDOI_ON_OFF: GDOI is OFF
*Feb 4 11:08:58.063: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet2, changed state to down
*Feb 4 11:08:58.063: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet3, changed state to down
*Feb 4 11:08:58.063: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet4, changed state to down
*Feb 4 11:08:58.063: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5, changed state to down
*Feb 4 11:08:58.063: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet6, changed state to down
*Feb 4 11:08:58.067: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet7, changed state to down
*Feb 4 11:08:58.067: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet8, changed state to down
*Feb 4 11:08:58.067: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet9, changed state to down
Router>enable
Router#copy start run
■最初に保存しているstartup-configをrunning-configにコピーして設定を復元する
Destination filename [running-config]?
*Feb 4 11:10:40.555: %LINK-3-UPDOWN: Interface Virtual-Access1, changed state to up
*Feb 4 11:10:40.559: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access1, changed state to up
*Feb 4 11:10:41.339: %LINEPROTO-5-UPDOWN: Line protocol on Interface NVI0, changed state to up
2123 bytes copied in 8.504 secs (250 bytes/sec)
1812j#config t
Enter configuration commands, one per line. End with CNTL/Z.
1812j(config)#enable secret [新しいパスワード]
1812j(config)#config-register 0x2102
■コンフィグレーションレジスタを初期値にもどす
これをしないと次回起動時もstartup-configが無視される
1812j(config)#interface f0
1812j(config-if)#no shutdown
1812j(config-if)#
*Feb 4 11:12:32.591: %LINK-3-UPDOWN: Interface FastEthernet0, changed state to down
1812j(config)#end
*Feb 4 11:13:08.779: %SYS-5-CONFIG_I: Configured from console by cons
1812j#copy run start
■新しいパスワードになったrunning-configをstartup-configに保存
Destination filename [startup-config]?
Building configuration...
[OK]
1812j#
・ROMモードで起動してコンフィグレーションレジスタを変更
・startup-configを使わずrunning-configだけで起動
・そのまま特権モードに入りstartup-configをrunning-configにコピーし設定を反映
・特権モードのパスワードを変更
・コンフィグレーションレジスタを元の0x2102に戻す
・シャットダウンされているインターフェースを起動
・現在のrunning-configをstartup-configに保存
■電源投入
System Bootstrap, Version 12.3(8r)YH13, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 2008 by cisco Systems, Inc.
C1800 platform with 262144 Kbytes of main memory with parity disabled
Readonly ROMMON initialized
program load complete, entry point: 0x80012000, size: 0xc0c0
Initializing ATA monitor library.......
program load complete, entry point: 0x80012000, size: 0xc0c0
Initializing ATA monitor library.......
■TeratermでAlt+Bでブレイクし、ROMモニターモードに移行
monitor: command "boot" aborted due to user interrupt
rommon 1 > confreg 0x2142
You must reset or power cycle for new config to take effect
rommon 2 > reset
■以後、startup-configを無視して起動するためパスワードなしで特権モードになれる
System Bootstrap, Version 12.3(8r)YH13, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 2008 by cisco Systems, Inc.
C1800 platform with 262144 Kbytes of main memory with parity disabled
Readonly ROMMON initialized
program load complete, entry point: 0x80012000, size: 0xc0c0
Initializing ATA monitor library.......
program load complete, entry point: 0x80012000, size: 0xc0c0
Initializing ATA monitor library.......
program load complete, entry point: 0x80012000, size: 0x1c198b8
Self decompressing the image : ############################################################################################################################################################################################################################################################################### [OK]
Restricted Rights Legend
Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.
cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706
Cisco IOS Software, C181X Software (C181X-ADVIPSERVICESK9-M), Version 15.1(4)M1, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2011 by Cisco Systems, Inc.
Compiled Tue 14-Jun-11 16:40 by prod_rel_team
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Installed image archive
Cisco 1812-J (MPC8500) processor (revision 0x400) with 236544K/25600K bytes of memory.
Processor board ID FHK131222FY, with hardware revision 0000
10 FastEthernet interfaces
1 ISDN Basic Rate interface
1 Virtual Private Network (VPN) Module
62720K bytes of ATA CompactFlash (Read/Write)
--- System Configuration Dialog ---
Would you like to enter the initial configuration dialog? [yes/no]:
% Please answer 'yes' or 'no'.
Would you like to enter the initial configuration dialog? [yes/no]: no
■セットアップモードで「no」を選択
Press RET down
*Feb 4 11:08:16.339: USB init complete.
*Feb 4 11:08:16.339: %LINK-3-UPDOWN: Interface FastEthernet0, changed state to down
*Feb 4 11:08:16.339: %LINK-3-UPDOWN: Interface FastEthernet1, changed state to down
*Feb 4 11:08:17.683: %SYS-6-STARTUP_CONFIG_IGNORED: System startup configuration is ignored based on the configuration register setting.
*Feb 4 11:08:54.639: %LINK-5-CHANGED: Interface BRI0, changed state to administratively down
*Feb 4 11:08:57.063: %LINK-5-CHANGED: Interface FastEthernet0, changed state to administratively down
*Feb 4 11:08:57.063: %LINK-5-CHANGED: Interface FastEthernet1, changed state to administratively down
*Feb 4 11:08:57.063: %LINK-3-UPDOWN: Interface FastEthernet2, changed state to up
*Feb 4 11:08:57.063: %LINK-3-UPDOWN: Interface FastEthernet3, changed state to up
*Feb 4 11:08:57.063: %LINK-3-UPDOWN: Interface FastEthernet4, changed state to up
*Feb 4 11:08:57.063: %LINK-3-UPDOWN: Interface FastEthernet5, changed state to up
*Feb 4 11:08:57.063: %LINK-3-UPDOWN: Interface FastEthernet6, changed state to up
*Feb 4 11:08:57.067: %LINK-3-UPDOWN: Interface FastEthernet7, changed state to up
*Feb 4 11:08:57.067: %LINK-3-UPDOWN: Interface FastEthernet8, changed state to up
*Feb 4 11:08:57.067: %LINK-3-UPDOWN: Interface FastEthernet9, changed state to up
*Feb 4 11:08:57.067: %SYS-5-RESTART: System restarted --
Cisco IOS Software, C181X Software (C181X-ADVIPSERVICESK9-M), Version 15.1(4)M1, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2011 by Cisco Systems, Inc.
Compiled Tue 14-Jun-11 16:40 by prod_rel_team
*Feb 4 11:08:57.067: %SNMP-5-COLDSTART: SNMP agent on host Router is undergoing a cold start
*Feb 4 11:08:57.095: %CRYPTO-6-ISAKMP_ON_OFF: ISAKMP is OFF
*Feb 4 11:08:57.095: %CRYPTO-6-GDOI_ON_OFF: GDOI is OFF
*Feb 4 11:08:58.063: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet2, changed state to down
*Feb 4 11:08:58.063: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet3, changed state to down
*Feb 4 11:08:58.063: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet4, changed state to down
*Feb 4 11:08:58.063: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet5, changed state to down
*Feb 4 11:08:58.063: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet6, changed state to down
*Feb 4 11:08:58.067: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet7, changed state to down
*Feb 4 11:08:58.067: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet8, changed state to down
*Feb 4 11:08:58.067: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet9, changed state to down
Router>enable
Router#copy start run
■最初に保存しているstartup-configをrunning-configにコピーして設定を復元する
Destination filename [running-config]?
*Feb 4 11:10:40.555: %LINK-3-UPDOWN: Interface Virtual-Access1, changed state to up
*Feb 4 11:10:40.559: %LINEPROTO-5-UPDOWN: Line protocol on Interface Virtual-Access1, changed state to up
*Feb 4 11:10:41.339: %LINEPROTO-5-UPDOWN: Line protocol on Interface NVI0, changed state to up
2123 bytes copied in 8.504 secs (250 bytes/sec)
1812j#config t
Enter configuration commands, one per line. End with CNTL/Z.
1812j(config)#enable secret [新しいパスワード]
1812j(config)#config-register 0x2102
■コンフィグレーションレジスタを初期値にもどす
これをしないと次回起動時もstartup-configが無視される
1812j(config)#interface f0
1812j(config-if)#no shutdown
1812j(config-if)#
*Feb 4 11:12:32.591: %LINK-3-UPDOWN: Interface FastEthernet0, changed state to down
1812j(config)#end
*Feb 4 11:13:08.779: %SYS-5-CONFIG_I: Configured from console by cons
1812j#copy run start
■新しいパスワードになったrunning-configをstartup-configに保存
Destination filename [startup-config]?
Building configuration...
[OK]
1812j#
2012年1月29日日曜日
1812jでNATとPPPoEを設定する
1812j# conf t
1812j(config)#int vlan1
1812j(config-if)#ip addr 192.168.11.1 255.255.255.0
vlan 1にIPアドレスを設定
1812j(config-if)#ip tcp adjust-mss 1414
TCPが格納するユーザデータで 受信可能なセグメントサイズの最大値を指定
Bフレッツでは、MTU:1454、MSS:1414
1812j(config-if)#ip ip nat inside
1812j(config-if)#exit
1812j(config)#ip dhcp excluded-address 192.168.11.1
DHCPでLANに払いだすIPから192.168.1.1を除外
1812j(config)#ip dhcp pool LAN
IPアドレスの払い出し内容
1812j(dhcp-config)#network 192.168.11.0 255.255.255.0
払いだすネットワークを指定
1812j(dhcp-config)#dns-server 192.168.11.1
PCへ渡すDNSサーバのIPアドレスを指定
1812j(dhcp-config)#default-router 192.168.11.1
PCへ渡すデフォルトゲートウェイを指定
1812j(dhcp-config)#exit
1812j(config)#int di0
1812j(config-if)#ip address negotiated
ダイヤラインターフェイスのIPアドレスをPPP/IPCPで取得することを指定
1812j(config-if)#ip mtu 1454
Ethernetフレームが格納できるIPデータグラムの最大値を指定
1812j(config-if)#ip nat outside
1812j(config-if)#encapsulation ppp
pppでカプセル化
1812j(config-if)#dialer pool 1
このプロファイルを1番として定義
1812j(config-if)#dialer-group 1
利用するダイヤラーリストを指定
1812j(config-if)#ppp authentication chap callin
単方向の認証を行います。 ルータ1812jだけがISPにより認証されます。
ISP側ルータを認証はしません。
1812j(config-if)#ppp chap hostname [ユーザID]
1812j(config-if)#ppp chap password [パスワード]
1812j(config-if)#ppp ipcp dns request accept
PPPoEからDNSサーバのアドレスを取得する設定
1812j(config-if)#exit
1812j(config)#ip route 0.0.0.0 0.0.0.0 di0
1812j(config)#dialer-list 1 protocol ip permit
ダイヤラリストを作成し、ダイヤルグループを関連付けます。
パケットは、指定されたインターフェイス ダイヤラグループを通じて転送されます。
1812j(config)#int fa0
1812j(config-if)#no ip address
1812j(config-if)#pppoe enable group global
1812j(config-if)#pppoe-client dial-pool-number 1
PPPoEクライアントを設定し、クローニングに使用するダイヤラを指定
1812j(config-if)#exit
1812j(config)#access-list 1 permit 192.168.11.0 0.0.0.255
NAT変換対象を指定
1812j(config)#ip nat inside source list 1 interface Dialer0 overload
WAN側の出口は「Dialer 0」を 利用
1812j(config)#ip dns server
DNSのサービスを有効
1812j(config)#ip host 1812j 192.168.11.1
DNSにマッピングするホスト名とIPアドレスを登録
参考
http://www.cisco.com/cisco/web/support/JP/102/1020/1020018_pppoe_client.html
1812j(config)#int vlan1
1812j(config-if)#ip addr 192.168.11.1 255.255.255.0
vlan 1にIPアドレスを設定
1812j(config-if)#ip tcp adjust-mss 1414
TCPが格納するユーザデータで 受信可能なセグメントサイズの最大値を指定
Bフレッツでは、MTU:1454、MSS:1414
1812j(config-if)#ip ip nat inside
1812j(config-if)#exit
1812j(config)#ip dhcp excluded-address 192.168.11.1
DHCPでLANに払いだすIPから192.168.1.1を除外
1812j(config)#ip dhcp pool LAN
IPアドレスの払い出し内容
1812j(dhcp-config)#network 192.168.11.0 255.255.255.0
払いだすネットワークを指定
1812j(dhcp-config)#dns-server 192.168.11.1
PCへ渡すDNSサーバのIPアドレスを指定
1812j(dhcp-config)#default-router 192.168.11.1
PCへ渡すデフォルトゲートウェイを指定
1812j(dhcp-config)#exit
1812j(config)#int di0
1812j(config-if)#ip address negotiated
ダイヤラインターフェイスのIPアドレスをPPP/IPCPで取得することを指定
1812j(config-if)#ip mtu 1454
Ethernetフレームが格納できるIPデータグラムの最大値を指定
1812j(config-if)#ip nat outside
1812j(config-if)#encapsulation ppp
pppでカプセル化
1812j(config-if)#dialer pool 1
このプロファイルを1番として定義
1812j(config-if)#dialer-group 1
利用するダイヤラーリストを指定
1812j(config-if)#ppp authentication chap callin
単方向の認証を行います。 ルータ1812jだけがISPにより認証されます。
ISP側ルータを認証はしません。
1812j(config-if)#ppp chap hostname [ユーザID]
1812j(config-if)#ppp chap password [パスワード]
1812j(config-if)#ppp ipcp dns request accept
PPPoEからDNSサーバのアドレスを取得する設定
1812j(config-if)#exit
1812j(config)#ip route 0.0.0.0 0.0.0.0 di0
1812j(config)#dialer-list 1 protocol ip permit
ダイヤラリストを作成し、ダイヤルグループを関連付けます。
パケットは、指定されたインターフェイス ダイヤラグループを通じて転送されます。
1812j(config)#int fa0
1812j(config-if)#no ip address
1812j(config-if)#pppoe enable group global
1812j(config-if)#pppoe-client dial-pool-number 1
PPPoEクライアントを設定し、クローニングに使用するダイヤラを指定
1812j(config-if)#exit
1812j(config)#access-list 1 permit 192.168.11.0 0.0.0.255
NAT変換対象を指定
1812j(config)#ip nat inside source list 1 interface Dialer0 overload
WAN側の出口は「Dialer 0」を 利用
1812j(config)#ip dns server
DNSのサービスを有効
1812j(config)#ip host 1812j 192.168.11.1
DNSにマッピングするホスト名とIPアドレスを登録
参考
http://www.cisco.com/cisco/web/support/JP/102/1020/1020018_pppoe_client.html
ブロードバンドスピードテスト
回線速度に関してはキャリアは光ネクストだからもうすることないんじゃね?
なんて思ってたけど、検証用に入手したCisco1812jの性能が気になってしまった。
はたしてネットワーク機器でブラウジングスピードがどれほど変わるのか!?
言わずと知れたBNRスピードテストで実測!
■BUFFALO AerStation G54(既存環境)
------ BNRスピードテスト (ダウンロード速度) ------
測定サイト: http://www.musen-lan.com/speed/ Ver5.2001
測定日時: 2012/01/29 21:53:54
回線/ISP/地域:
--------------------------------------------------
1.NTTPC(WebARENA)1: 10.65Mbps (1.33MB/sec)
2.NTTPC(WebARENA)2: 16.39Mbps (2.04MB/sec)
推定転送速度: 16.39Mbps (2.04MB/sec)
■Cisco 1812j(新環境)
------ BNRスピードテスト (ダウンロード速度) ------
測定サイト: http://www.musen-lan.com/speed/ Ver5.2001
測定日時: 2012/01/29 21:45:01
回線/ISP/地域:
--------------------------------------------------
1.NTTPC(WebARENA)1: 37.45Mbps (4.68MB/sec)
2.NTTPC(WebARENA)2: 16.69Mbps (2.08MB/sec)
推定転送速度: 37.45Mbps (4.68MB/sec)
なんと2倍以上の開きがでました。
やっぱり、通信環境って機器でだいぶ変わるんだな。
長いこと回線速度を活かしきれてなかったなんて、もったいない。。。
※追記
と、思いきやその後、もう一度G54環境で測り直すと67Mbps。。。どういうこっちゃ。
体感速度は絶対1812jの方が良いだけにわけわからんくなってきた。
なんて思ってたけど、検証用に入手したCisco1812jの性能が気になってしまった。
はたしてネットワーク機器でブラウジングスピードがどれほど変わるのか!?
言わずと知れたBNRスピードテストで実測!
■BUFFALO AerStation G54(既存環境)
------ BNRスピードテスト (ダウンロード速度) ------
測定サイト: http://www.musen-lan.com/speed/ Ver5.2001
測定日時: 2012/01/29 21:53:54
回線/ISP/地域:
--------------------------------------------------
1.NTTPC(WebARENA)1: 10.65Mbps (1.33MB/sec)
2.NTTPC(WebARENA)2: 16.39Mbps (2.04MB/sec)
推定転送速度: 16.39Mbps (2.04MB/sec)
■Cisco 1812j(新環境)
------ BNRスピードテスト (ダウンロード速度) ------
測定サイト: http://www.musen-lan.com/speed/ Ver5.2001
測定日時: 2012/01/29 21:45:01
回線/ISP/地域:
--------------------------------------------------
1.NTTPC(WebARENA)1: 37.45Mbps (4.68MB/sec)
2.NTTPC(WebARENA)2: 16.69Mbps (2.08MB/sec)
推定転送速度: 37.45Mbps (4.68MB/sec)
なんと2倍以上の開きがでました。
やっぱり、通信環境って機器でだいぶ変わるんだな。
長いこと回線速度を活かしきれてなかったなんて、もったいない。。。
※追記
と、思いきやその後、もう一度G54環境で測り直すと67Mbps。。。どういうこっちゃ。
体感速度は絶対1812jの方が良いだけにわけわからんくなってきた。
2012年1月28日土曜日
CISCO1812-J/K9
やっとこさ入手。
Yオークションで送料込み¥10,000也
CiscoVPNClientライセンス無料
無償管理ソフトウェア
Cisco Router and Security Device Manager (SDM)
Cisco Network Assistant(CNA)
Yオークションで送料込み¥10,000也
CiscoVPNClientライセンス無料
無償管理ソフトウェア
Cisco Router and Security Device Manager (SDM)
Cisco Network Assistant(CNA)
| 製品名 | Cisco1812J | RTX1100 |
|---|---|---|
| インターフェース | WAN:2FE、LAN:8Port-SW | WAN:2FE、LAN:4Port-SW |
| VLAN機能 | 有り | 有り |
| ISDN I/F | 有り | 有り |
| PoE | オプション | 無し |
| RAM | 256MB(最大384MB) | 32MB |
| サイト間VPN | IPSec(50対向)、PPTP、DMVPN、GETVPN | IPSec(30対向)、PPTP、IPIPトンネル |
| リモートアクセス クライアント費用 | IPSec(無償)、SSL VPN | 10,290円/ユーザ |
| ファイアウォール | 制限なし | 2000セッション |
| URLフィルタリング | 有り | 有り |
| 侵入検知(IPS) | 有り | IDS |
| ワイヤレス統合 | ワイヤレスモデル1812JW | 無し |
| ルーティングプロトコル | RIPv1v2、BGP、EIGRP、OSPF | RIPv1v2、OSPF、BGP |
| 設定・管理 | CLI及びSDMソフトウェア | CLI及びWeb設定 |
| メーカー価格 | 108,720円 | 118,000円 |
登録:
投稿 (Atom)
