router(config)# ip router 0.0.0.0 0.0.0.0 202.102.211.107
这条命令表示,将内部网段上发给路由器的包转发给DDN专线另一端的地址202.102.211.107。
6.查看配置
router# show running-config
Building configuration...
Current configuration:
!
version 12.0
service config
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname cisco2611
!
enable secret 5 $1$MJrb$o3NCu6DPwG/TGFBT7xiLv/
!
ip subnet-zero
ip domain-name pcworld.com.cn
ip name-server 202.102.224.1
!
interface Ethernet0/0
ip address 202.102.224.25 255.255.255.0
!
interface serial0/0
ip address 202.102.211.108 255.255.255.248
!
ip classless
ip default-network 0.0.0.0
ip router 0.0.0.0 0.0.0.0 202.102.211.107
no ip http server
!
line con 0
exec-timeout 1 0
password 7 061C0731
login
transport input none
line aux 0
line vty 0 4
access-class 2 in
password 7 131F1F02
login
!
end