Router(config-if)#ip address 20.20.20.1 255.255.255.0
Router(config-if)#ip address 20.20.20.1 255.255.255.252
Router(config-if)#no shutdown
Router(config)#router bgp 100
Router(config-router)#neighbor 10.10.10.2 remo
Router(config-router)#neighbor 10.10.10.2 remote-as 200
Router(config-router)#neighbor 20.20.20.2 remote-as 300
Router(config-router)#network 10.10.10.0 mask 255.255.255.252
Router(config-router)#network 20.20.20.0 mask 255.255.255.252
Router(config-router)#network 192.168.10.0 mask 255.255.255.0
Router(config-router)#do sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
10.0.0.0/30 is subnetted, 1 subnets
B 10.10.10.0 [20/0] via 20.20.20.1, 00:00:00
20.0.0.0/30 is subnetted, 1 subnets
C 20.20.20.0 is directly connected, FastEthernet0/0
30.0.0.0/30 is subnetted, 1 subnets
C 30.30.30.0 is directly connected, FastEthernet0/1
B 192.168.10.0/24 [20/0] via 20.20.20.1, 00:00:00
C 192.168.20.0/24 is directly connected, Ethernet1/0
B 192.168.30.0/24 [20/0] via 30.30.30.1, 00:00:00
Tidak ada komentar:
Posting Komentar