Конфигуриране на PPP при Cisco маршрутизатори
от БАРЗИКТ Wiki
Съдържание
Примерна топология
В примерите се използва статично маршрутизиране на трафика между двете LAN мрежи.
Конфигуриране на PPP без автентификация
Маршрутизатор R1
enable configure terminal hostname R1 interface gi0/0 ip address 10.0.0.1 255.0.0.0 no shutdown interface s0/0/0 encapsulation ppp ip address 11.0.0.1 255.0.0.0 clock rate 4000000 no shutdown exit ip route 172.16.0.0 255.255.0.0 11.0.0.2 end
Маршрутизатор R2
enable configure terminal hostname R2 interface gi0/0 ip address 172.16.0.1 255.255.0.0 no shutdown interface s0/0/0 encapsulation ppp ip address 11.0.0.2 255.0.0.0 no shutdown exit ip route 10.0.0.0 255.0.0.0 11.0.0.1 end
Конфигуриране на PPP с автентификация PAP
Обърнете внимане на конфигурираните потребители на R1 и R2!
Маршрутизатор R1
enable configure terminal hostname R1 interface gi0/0 ip address 10.0.0.1 255.0.0.0 no shutdown interface s0/0/0 encapsulation ppp ppp authentication pap ppp pap sent-username R1 password cisco ip address 11.0.0.1 255.0.0.0 clock rate 4000000 no shutdown exit user R2 secret cisco ip route 172.16.0.0 255.255.0.0 11.0.0.2 end
Маршрутизатор R2
enable configure terminal hostname R2 interface gi0/0 ip address 172.16.0.1 255.255.0.0 no shutdown interface s0/0/0 encapsulation ppp ppp authentication pap ppp pap sent-username R2 password cisco ip address 11.0.0.2 255.0.0.0 no shutdown exit user R1 secret cisco ip route 10.0.0.0 255.0.0.0 11.0.0.1 end
Конфигуриране на PPP с автентификация CHAP
Маршрутизатор R1
enable configure terminal hostname R1 interface gi0/0 ip address 10.0.0.1 255.0.0.0 no shutdown interface s0/0/0 encapsulation ppp ppp authentication chap ip address 11.0.0.1 255.0.0.0 clock rate 4000000 no shutdown exit user R2 secret cisco ip route 172.16.0.0 255.255.0.0 11.0.0.2 end
Маршрутизатор R2
enable configure terminal hostname R2 interface gi0/0 ip address 172.16.0.1 255.255.0.0 no shutdown interface s0/0/0 encapsulation ppp ppp authentication chap ip address 11.0.0.2 255.0.0.0 no shutdown exit user R1 secret cisco ip route 10.0.0.0 255.0.0.0 11.0.0.1 end