version 11.2 service udp-small-servers service tcp-small-servers ! hostname shanghai ! enable secret bluegarden ! username bluegarden passWord bluegarden ip subnet-zero no ip domain-lookup ! interface Ethernet0 ip address 10.1.8.1 255.255.255.0 ! interface Serial0 no ip address shutdown ! interface Async1 no ip address encapsulation ppp async default routing async mode dedicated dialer in-band dialer rotary-group 0 no cdp enable ! interface Dialer0 ip unnumbered Ethernet0 ip tcp header-comPRession passive encapsulation ppp dialer in-band dialer map snapshot 1 name Beijing 01055520089 dialer map ip 10.1.9.1 name Beijing broadcast 01055520089 dialer-group 1 snapshot server 5 dialer no cdp enable ppp authentication chap ! router rip version 2 network 10.1.8.0 255.255.255.0(假如不加掩码,则默认为10.0.0.0) no auto-summary ! ip classless dialer-list 1 protocol ip permit ! line con 0 password Bluegarden login line vty 0 4 password Bluegarden login ! end
分部(北京)路由器设置
service udp-small-servers service tcp-small-servers ! hostname Beijing ! enable secret Bluegarden ! username Bluegarden password Bluegarden ip subnet-zero no ip domain-lookup ! interface Ethernet0 ip address 10.1.9.1 255.255.255.0 ! interface Serial0 no ip address shutdown ! interface Async1 no ip address encapsulation ppp async default routing async mode dedicated dialer in-band dialer rotary-group 0 no cdp enable ! interface Dialer0 ip unnumbered Ethernet0 encapsulation ppp dialer in-band dialer map snapshot 1 name Shanghai 02155520089 dialer map ip 10.1.8.1 name Shanghai broadcast 02155520089 dialer-group 1 snapshot client 5 360 dialer no cdp enable ppp authentication chap ! router rip version 2 network 10.1.9.0 255.255.255.0 no auto-summary ! ip classless dialer-list 1 protocol ip permit ! line con 0 password Bluegarden login line vty 0 4 password Bluegarden login ! end