line con 0
line aux 0
line vty 0 4
password cisco
end
【問題3】此配置中nat采用了動態(tài)地址轉(zhuǎn)換。
習(xí)題二:
【問題1】路由器router1和router2的s0口均封裝ppp協(xié)議,采用chap做認證,在router1中應(yīng)建立一個用戶,以對端路由器主機名作為用戶名,即用戶名應(yīng)為router2。同時在router2中應(yīng)建立一個用戶,以對端路由器主機名作為用戶名,即用戶名應(yīng)為router1。所建的這兩用戶的password必須相同。
【問題2】
router1:
hostname router1 //路由器名為router1
username router2 password xxx //建立一用戶,用戶名為router2,口令為xxx
interface serial0
ip address 192.200.10.1 255.255.255.0
encapsulation ppp //設(shè)置ppp封裝
clockrate 1000000
ppp authentication chap //設(shè)置ppp認證方法為chap
!
router2:
hostname router2
username router1 password xxx
interface serial0
ip address 192.200.10.2 255.255.255.0
encapsulation ppp
ppp authentication chap