Использование протоколов маршрутизации
Статическая маршрутизация
gate.isp.un# ip route add 192.168.100+X.0/24 via 172.16.1.X
Настройка маршрутизатора cisco
ip route 192.168.100+X.0 255.255.255.0 192.168.X.10
Настройка UNIX
Протокол OSPF
Подготовка маршрутизатора cisco
no ip route 192.168.100+X.0 255.255.255.0 192.168.X.10
Подготовка UNIX
server# route delete default
Настройка маршрутизатора cisco
router ospf 100
network 192.168.X.0 0.0.0.255 area 0
default-information originate
Проверка на маршрутизаторе cisco
router#show ip ospf neighbor
router#show ip route
Настройка UNIX
linux# ###telnet localhost ospfd
linux# vtysh
router ospf
network 192.168.X.0/24 area 0
redistribute connected
frr# show ip ospf neighbor
frr# show ip route
linux# ip r
Протокол BGP
Cisco
no router ospf 100
router bgp 100+X
neighbor 192.168.X.10 remote-as 200+X
neighbor 192.168.X.10 default-originate
frr
# cat /etc/frr/daemons
...
bgpd=yes
...
# service frr restart
# vtysh
router bgp 200+X
no bgp ebgp-requires-policy
neighbor 192.168.X.1 remote-as 100+X
redistribute connected
Cisco/frr
# show ip bgp summary
# show ip route