использование_протоколов_маршрутизации

Использование протоколов маршрутизации

Статическая маршрутизация

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

server### ifdown eth0

server# telnet localhost ospfd
router ospf
 network 192.168.X.0/24 area 0
 redistribute connected
server# telnet localhost ospfd
! access-list ACL_IP_NET permit 192.168.100+X.0/24

! route-map RM_IP_NET permit 1
!  match ip address ACL_IP_NET

router ospf
 network 192.168.X.0/24 area 0
 redistribute connected ! route-map RM_IP_NET

service_ospfd# show ip ospf neighbor
linux# ip r

freebsd# netstat -rn

server# telnet localhost zebra
service_zebra# show ip route

Протокол 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

Zebra

# cat /etc/quagga/bgpd.conf
hostname service_bgpd
password zebra
enable password zebra

router bgp 200+X
 no bgp ebgp-requires-policy
 neighbor 192.168.X.1 remote-as 100+X
 redistribute connected
# service bgpd start

Cisco/Zebra

# show ip bgp summary

# show ip route
использование_протоколов_маршрутизации.txt · Last modified: 2024/06/24 10:34 by val