Building Configuration... Current configuration version 11.2 service udp-small-servers service tcp-small-servers hostname Router-A enable secret test-a ip subnet-zero interface Ethernet0 description the LAN port link to my local network ip address 202.96.199.1 255.255.255.0 interface Serial0 description the WAN port link to Router-B ip address 202.98.0.1 255.255.255.252 bandwidth 128 interface Serial1 no ip address shutdown ip domain-name xxx.com ip name-server 202.96.199.2 ip name-server 202.96.199.3 ip classless ip route 202.97.76.0 255.255.255.224 202.98.0.2 line con 0 line aux 0 line vty 0 4 password telnet-a login end Router-A# Rouer B: Router-B#sh run
Building Configuration... Current configuration version 11.2 service udp-small-servers service tcp-small-servers hostname Router-B enable secret test-b ip subnet-zero interface Ethernet0 description the LAN port link to my local network ip address 202.97.76.1 255.255.255.224 interface Serial0 description the WAN port link to Router-A ip address 202.98.0.2 255.255.255.252 bandwidth 128 interface Serial1 no ip address shutdown ip domain-name yyy.com ip name-server 202.96.199.2 ip name-server 202.96.199.3 ip classless ip route 202.96.199.0 255.255.255.0 202.98.0.1 line con 0 line aux 0 line vty 0 4 password telnet-b login end Router-B#
實例2:通過Cisco 2501將你的局域網(wǎng)接入Internet
假設(shè)實驗條件如下:
本網(wǎng)IP地址為:202.96.199.0——202.96.199.255 DNS Server:202.96.202.96(主),202.96.96.202(備) ISP分配的廣域網(wǎng)互聯(lián)IP地址為202.98.0.2
這里是本網(wǎng)路由器配置清單。 Router#sh run Building Configuration... Current configuration version 11.2 service udp-small-servers service tcp-small-servers hostname Router enable secret test ip subnet-zero interface Ethernet0 description the LAN port link to my local network ip address 202.96.199.1 255.255.255.0 interface Serial0 description the WAN port link to Internet ip address 202.98.0.2 255.255.255.252 bandwidth 128 interface Serial1 no ip address shutdown ip domain-name xxx.com ip name-server 202.96.202.96 ip name-server 202.96.96.202 ip classless ip route 0.0.0.0 0.0.0.0 202.98.0.1 line con 0 line aux 0 line vty 0 4 password telnet login end Router#