2014年計算機(jī)軟考網(wǎng)絡(luò)工程師復(fù)習(xí)資料及練習(xí)題

字號:

為大家收集整理了《2014年計算機(jī)軟考網(wǎng)絡(luò)工程師復(fù)習(xí)資料及練習(xí)題》供大家參考,希望對大家有所幫助?。?!
    【問題1】nat可以分為靜態(tài)地址轉(zhuǎn)換、動態(tài)地址轉(zhuǎn)換、復(fù)用動態(tài)地址轉(zhuǎn)換三種方式。
    【問題2】
    current configuration:
    version 11.3
    no service password-encryption
    hostname 2501 //路由器名稱為2501
    ip nat pool aaa 192.1.1.2 192.1.1.10 netmask 255.255.255.0 //內(nèi)部合法地址池名稱為aaa,地址范圍為192.1.1.2~192.1.1.10,子網(wǎng)掩碼為255.255.255.0
    ip nat inside source list 1 pool aaa //將由access-list 1指定的內(nèi)部本地地址與指定的內(nèi)部合法地址池aaa進(jìn)行地址轉(zhuǎn)換。
    interface ethernet0
    ip address 10.1.1.1 255.255.255.0
    ip nat inside //指定與內(nèi)部網(wǎng)絡(luò)相連的內(nèi)部端口為ethernet0
    interface serial0
    ip address 192.1.1.1 255.255.255.0
    ip nat outside
    no ip mroute-cache
    bandwidth 2000 //帶寬為2m
    no fair-queue
    clockrate 2000000
    interface serial1
    no ip address
    shutdown
    no ip classless
    ip route 0.0.0.0 0.0.0.0 serial0 //指定靜態(tài)缺省路由指向serial0
    access-list 1 permit 10.1.1.0 0.0.0.255 //定義一個標(biāo)準(zhǔn)的access-list 1以允許10.1.1.0 網(wǎng)段,子網(wǎng)掩碼的反碼為0.0.0.255的內(nèi)部地址可以進(jìn)行動態(tài)地址轉(zhuǎn)換
    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做認(rèn)證,在router1中應(yīng)建立一個用戶,以對端路由器主機(jī)名作為用戶名,即用戶名應(yīng)為router2。同時在router2中應(yīng)建立一個用戶,以對端路由器主機(jī)名作為用戶名,即用戶名應(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認(rèn)證方法為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