- 积分
- 850
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2011-4-25
- 最后登录
- 1970-1-1
- 阅读权限
- 40
- 听众
- 收听
中级工程师
|
10鸿鹄币
R1
router bgp 100
no synchronization
bgp log-neighbor-changes
network 10.10.10.10 mask 255.255.255.255
neighbor 2.2.2.2 remote-as 200
neighbor 2.2.2.2 ebgp-multihop 2
neighbor 2.2.2.2 update-source Loopback0
no auto-summary
!
ip route 2.2.2.0 255.255.255.0 192.168.12.2
(路由表:
C 192.168.12.0/24 is directly connected, FastEthernet0/0
1.0.0.0/24 is subnetted, 1 subnets
C 1.1.1.0 is directly connected, Loopback0
2.0.0.0/24 is subnetted, 1 subnets
S 2.2.2.0 [1/0] via 192.168.12.2
3.0.0.0/24 is subnetted, 1 subnets
B 3.3.3.0 [20/2297856] via 2.2.2.2, 00:01:05
10.0.0.0/32 is subnetted, 1 subnets
C 10.10.10.10 is directly connected, Loopback10)
( show ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 3.3.3.0/24 2.2.2.2 2297856 0 200 i
*> 10.10.10.10/32 0.0.0.0 0 32768 i )
R2
router bgp 200
no synchronization
bgp log-neighbor-changes
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 ebgp-multihop 2
neighbor 1.1.1.1 update-source Loopback0
neighbor 3.3.3.3 remote-as 200
neighbor 3.3.3.3 update-source Loopback0
neighbor 3.3.3.3 next-hop-self
neighbor 4.4.4.4 remote-as 200
neighbor 4.4.4.4 update-source Loopback0
neighbor 4.4.4.4 next-hop-self
no auto-summary
!
ip route 1.1.1.0 255.255.255.0 192.168.12.1
(路由表:
C 192.168.12.0/24 is directly connected, FastEthernet0/0
1.0.0.0/24 is subnetted, 1 subnets
S 1.1.1.0 [1/0] via 192.168.12.1
2.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 2.2.2.0/24 is directly connected, Loopback0
S 2.0.0.0/8 [1/0] via 2.2.2.2
3.0.0.0/24 is subnetted, 1 subnets
D 3.3.3.0 [90/2297856] via 192.168.23.3, 00:43:27, Serial0/0
4.0.0.0/24 is subnetted, 1 subnets
D 4.4.4.0 [90/2809856] via 192.168.23.3, 00:43:05, Serial0/0
10.0.0.0/32 is subnetted, 1 subnets
B 10.10.10.10 [20/0] via 1.1.1.1, 00:25:32
C 192.168.23.0/24 is directly connected, Serial0/0
D 192.168.34.0/24 [90/2681856] via 192.168.23.3, 00:43:36, Serial0/0)
( show ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 3.3.3.0/24 192.168.23.3 2297856 32768 i
*> 10.10.10.10/32 1.1.1.1 0 0 100 i )
R3
router bgp 200
no synchronization
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 200
neighbor 2.2.2.2 update-source Loopback0
neighbor 4.4.4.4 remote-as 200
neighbor 4.4.4.4 update-source Loopback0
no auto-summary
(路由表:
2.0.0.0/24 is subnetted, 1 subnets
D 2.2.2.0 [90/2297856] via 192.168.23.2, 00:11:38, Serial0/0
3.0.0.0/24 is subnetted, 1 subnets
C 3.3.3.0 is directly connected, Loopback0
4.0.0.0/24 is subnetted, 1 subnets
D 4.4.4.0 [90/2297856] via 192.168.34.4, 00:40:22, Serial0/1
10.0.0.0/32 is subnetted, 1 subnets
B 10.10.10.10 [200/0] via 2.2.2.2, 00:22:46
C 192.168.23.0/24 is directly connected, Serial0/0
C 192.168.34.0/24 is directly connected, Serial0/1)
(show ip bgp
Network Next Hop Metric LocPrf Weight Path
r>i3.3.3.0/24 2.2.2.2 2297856 100 0 i
*>i10.10.10.10/32 2.2.2.2 0 100 0 100 i )
R4
router bgp 200
no synchronization
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 200
neighbor 2.2.2.2 update-source Loopback0
neighbor 3.3.3.3 remote-as 200
neighbor 3.3.3.3 update-source Loopback0
no auto-summary
R1和R2能互相ping通,但R1和R3不能互相ping通loopback口,我只在R2上network了R3的loopback0 3.3.3.3,R1上network了R1的loopback10 10.10.10.10
|
最佳答案
查看完整内容
我刚刚说的那个办法一定可以了,只要你通过的时候是路由表里有的,就一定可以了,只是要注意子网掩码的问题
|