ciscoルータ設定
コンソール接続
http://www.infraexpert.com/study/ciscoios.html
出荷時に戻す
下記コマンドを実行し、startup-configを削除すればOK
# erase startup-config |
PPPOEセッション設定
環境
- フレッツ光 (個人用)
- ルータ:cisco1812J
- LAN
- Fa0とプロバイダをPPPoEで接続する
- 固定IP
- プロバイダID:xxx@xxx.com
- プロバイダpass:xxx
- MTU:1454 (ntt)
- MSS:1414
- LAN内のPCに対してDHCPでIPアドレスを払い出す
- ネットワーク : 192.168.1.0/24
- デフォルトゲートウェイ: 192.168.1.1
- DNS : 192.168.1.1
- ルータがDNSフォワーディングを行う。
VLANの設定
xxx>enablePassword:xxx#xxx#show vlan-switchLoad for five secs: 0%/0%; one minute: 0%; five minutes: 1%Time source is hardware calendar, *22:12:59.855 JST Sun May 5 2013VLAN Name Status Ports---- -------------------------------- --------- -------------------------------1 default active Fa2, Fa3, Fa4, Fa5, Fa6, Fa7 Fa8, Fa91002 fddi-default active1003 token-ring-default active1004 fddinet-default active1005 trnet-default activeVLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------1 enet 100001 1500 - - - - - 1002 10031002 fddi 101002 1500 - - - - - 1 10031003 tr 101003 1500 1005 0 - - srb 1 10021004 fdnet 101004 1500 - - 1 ibm - 0 01005 trnet 101005 1500 - - 1 ibm - 0 0 |
Fa2~9はデフォルトでVLAN1に紐づいていました。
xxx# configure terminalxxx(config)#interface vlan1xxx(config-if)#ip addr 192.168.1.1 255.255.255.0xxx(config-if)#ip tcp adjust-mss 1414xxx(config-if)#ip ip nat insidexxx(config-if)#no shutdownxxx(config-if)#exit |
Loopback
xxx(config)#interface Loopback0xxx(config-if)#ip address xxx.xxx.xxx.xxx 255.255.255.255xxx(config-if)#no shutdown |
DHCPの設定
xxx(config)#ip dhcp excluded-address 192.168.1.1xxx(config)#ip dhcp pool LANxxx(dhcp-config)#network 192.168.1.0 255.255.255.0xxx(dhcp-config)#dns-server 192.168.1.1xxx(dhcp-config)#default-router 192.168.1.1xxx(dhcp-config)#exit |
PPPoEの設定
xxx(config)#interface di0xxx(config-if)#ip address negotiatedxxx(config-if)#ip unnumbered Loopback0xxx(config-if)#ip mtu 1454xxx(config-if)#ip nat outsidexxx(config-if)#encapsulation pppxxx(config-if)#dialer pool 1xxx(config-if)#dialer-group 1xxx(config-if)#ppp authentication chap callinxxx(config-if)#ppp chap hostname xxx@xxx.comxxx(config-if)#ppp chap password xxxxxx(config-if)#ppp ipcp dns request acceptxxx(config-if)#no shutdownxxx(config-if)#exitxxx(config)#ip route 0.0.0.0 0.0.0.0 di0xxx(config)#dialer-list 1 protocol ip permitxxx(config)#interface fa0xxx(config-if)#no ip addressxxx(config-if)#pppoe enable group globalxxx(config-if)#pppoe-client dial-pool-number 1xxx(config-if)#no shutdownxxx(config-if)#exitxxx(config)#access-list 1 permit 192.168.1.0 0.0.0.255xxx(config)#ip nat inside source list 1 interface Loopback0xxx(config)#ip dns serverxxx(config)#ip host xxx 192.168.1.1xxx(config)#interface fa2xxx(config-if)#no shutdownxxx(config-if)#exit |
参考
http://hiroshi-yyg.blogspot.jp/2011/02/b1812j.html
http://akiomik.blogspot.jp/2011/10/1812jpppoe.html
http://www.cisco.com/cisco/web/support/JP/102/1020/1020019_pppoe_lan.html
http://amamiya1980.blog93.fc2.com/blog-entry-30.html
http://www.lambeden.dyndns.org/~ktmr/pukiwiki/index.php?cisco%201812j
http://ameblo.jp/tred2/entry-10677301795.html
参考
http://akiomik.blogspot.jp/2011/10/1812jpppoe.html
http://www.cisco.com/cisco/web/support/JP/102/1020/1020019_pppoe_lan.html
http://amamiya1980.blog93.fc2.com/blog-entry-30.html
http://www.lambeden.dyndns.org/~ktmr/pukiwiki/index.php?cisco%201812j
http://ameblo.jp/tred2/entry-10677301795.html
参考