153 lines
4.5 KiB
Plaintext
153 lines
4.5 KiB
Plaintext
|
|
||
|
|
||
|
/ # ping 192.168.4.2
|
||
|
PING 192.168.4.2 (192.168.4.2): 56 data bytes
|
||
|
64 bytes from 192.168.4.2: seq=0 ttl=62 time=3.644 ms
|
||
|
64 bytes from 192.168.4.2: seq=1 ttl=62 time=7.362 ms
|
||
|
64 bytes from 192.168.4.2: seq=2 ttl=62 time=3.554 ms
|
||
|
64 bytes from 192.168.4.2: seq=3 ttl=62 time=3.654 ms
|
||
|
64 bytes from 192.168.4.2: seq=4 ttl=62 time=3.574 ms
|
||
|
--- 192.168.4.2 ping statistics ---
|
||
|
5 packets transmitted, 5 packets received, 0% packet loss
|
||
|
round-trip min/avg/max = 3.554/4.357/7.362 ms
|
||
|
|
||
|
/ # traceroute 192.168.4.2
|
||
|
traceroute to 192.168.4.2 (192.168.4.2), 30 hops max, 46 byte packets
|
||
|
1 10.0.0.1 (10.0.0.1) 1.149 ms 1.144 ms 1.063 ms
|
||
|
2 1.1.1.2 (1.1.1.2) 3.049 ms 3.751 ms 1.721 ms
|
||
|
3 192.168.4.2 (192.168.4.2) 2.876 ms 3.201 ms 2.826 ms
|
||
|
|
||
|
|
||
|
/ # ping 192.168.4.2
|
||
|
PING 192.168.4.2 (192.168.4.2): 56 data bytes
|
||
|
64 bytes from 192.168.4.2: seq=0 ttl=61 time=9.979 ms
|
||
|
64 bytes from 192.168.4.2: seq=1 ttl=61 time=5.306 ms
|
||
|
64 bytes from 192.168.4.2: seq=2 ttl=61 time=8.230 ms
|
||
|
64 bytes from 192.168.4.2: seq=3 ttl=61 time=4.963 ms
|
||
|
64 bytes from 192.168.4.2: seq=4 ttl=61 time=7.786 ms
|
||
|
--- 192.168.4.2 ping statistics ---
|
||
|
5 packets transmitted, 5 packets received, 0% packet loss
|
||
|
round-trip min/avg/max = 4.963/7.252/9.979 ms
|
||
|
|
||
|
/ # traceroute 192.168.4.2
|
||
|
traceroute to 192.168.4.2 (192.168.4.2), 30 hops max, 46 byte packets
|
||
|
1 10.0.0.1 (10.0.0.1) 1.079 ms 0.978 ms 0.875 ms
|
||
|
2 1.1.1.10 (1.1.1.10) 1.878 ms 2.529 ms 1.820 ms
|
||
|
3 1.1.1.5 (1.1.1.5) 4.696 ms 4.186 ms 3.769 ms
|
||
|
4 192.168.4.2 (192.168.4.2) 4.442 ms 9.486 ms 5.144 ms
|
||
|
|
||
|
R1
|
||
|
|
||
|
1.1.1.8/30 dev eth1 proto kernel scope link src 1.1.1.9
|
||
|
10.0.0.0/24 dev eth2 proto kernel scope link src 10.0.0.1
|
||
|
127.0.0.0/8 dev lo proto kernel scope link src 127.0.0.1
|
||
|
172.16.8.0/24 via 1.1.1.10 dev eth1 proto zebra metric 1
|
||
|
192.168.4.0/24 via 1.1.1.10 dev eth1 proto zebra
|
||
|
|
||
|
R2
|
||
|
|
||
|
1.1.1.4/30 dev eth1 proto kernel scope link src 1.1.1.5
|
||
|
10.0.0.0/24 via 1.1.1.6 dev eth1 proto zebra
|
||
|
127.0.0.0/8 dev lo proto kernel scope link src 127.0.0.1
|
||
|
172.16.8.0/24 via 1.1.1.6 dev eth1 proto zebra metric 1
|
||
|
192.168.4.0/24 dev eth2 proto kernel scope link src 192.168.4.1
|
||
|
|
||
|
R3
|
||
|
|
||
|
1.1.1.4/30 dev eth0 proto kernel scope link src 1.1.1.6
|
||
|
1.1.1.8/30 dev eth1 proto kernel scope link src 1.1.1.10
|
||
|
10.0.0.0/24 via 1.1.1.9 dev eth1 proto zebra metric 1
|
||
|
127.0.0.0/8 dev lo proto kernel scope link src 127.0.0.1
|
||
|
172.16.8.0/24 dev eth2 proto kernel scope link src 172.16.8.1
|
||
|
192.168.4.0/24 via 1.1.1.5 dev eth0 proto zebra metric 1
|
||
|
|
||
|
|
||
|
|
||
|
R1
|
||
|
|
||
|
configure
|
||
|
set interfaces ethernet eth0 address 1.1.1.1/30
|
||
|
set interfaces ethernet eth1 address 1.1.1.9/30
|
||
|
set interfaces ethernet eth3 address 10.0.0.1/30
|
||
|
set protocols bgp 65531 neighbor 1.1.1.2 remote-as '65532'
|
||
|
set protocols bgp 65531 neighbor 1.1.1.2 update-source 1.1.1.1
|
||
|
set protocols bgp 65531 parameters router-id 1.1.1.1
|
||
|
|
||
|
set protocols bgp 65531 neighbor 1.1.1.10 remote-as '65533'
|
||
|
set protocols bgp 65531 neighbor 1.1.1.10 update-source 1.1.1.9
|
||
|
set protocols bgp 65531 parameters router-id 1.1.1.10
|
||
|
|
||
|
set protocols bgp 65531 network 10.0.0.0/24
|
||
|
commit
|
||
|
save
|
||
|
exit
|
||
|
|
||
|
R2
|
||
|
|
||
|
configure
|
||
|
set interfaces ethernet eth0 address 1.1.1.2/30
|
||
|
set interfaces ethernet eth1 address 1.1.1.5/30
|
||
|
set interfaces ethernet eth2 address 192.168.4.1/24
|
||
|
set protocols bgp 65532 neighbor 1.1.1.1 remote-as '65531'
|
||
|
set protocols bgp 65532 neighbor 1.1.1.1 update-source 1.1.1.2
|
||
|
set protocols bgp 65532 parameters router-id 1.1.1.2
|
||
|
|
||
|
set protocols bgp 65532 neighbor 1.1.1.6 remote-as '65533'
|
||
|
set protocols bgp 65532 neighbor 1.1.1.6 update-source 1.1.1.5
|
||
|
set protocols bgp 65532 parameters router-id 1.1.1.6
|
||
|
|
||
|
set protocols bgp 65532 network 192.168.4.0/24
|
||
|
commit
|
||
|
save
|
||
|
exit
|
||
|
|
||
|
R3
|
||
|
|
||
|
configure
|
||
|
set interfaces ethernet eth0 address 1.1.1.6/30
|
||
|
set interfaces ethernet eth1 address 1.1.1.10/30
|
||
|
set interfaces ethernet eth3 address 172.16.8.1/24
|
||
|
set protocols bgp 65533 neighbor 1.1.1.9 remote-as '65531'
|
||
|
set protocols bgp 65533 neighbor 1.1.1.9 update-source 1.1.1.10
|
||
|
set protocols bgp 65533 parameters router-id 1.1.1.10
|
||
|
|
||
|
set protocols bgp 65533 neighbor 1.1.1.5 remote-as '65532'
|
||
|
set protocols bgp 65533 neighbor 1.1.1.5 update-source 1.1.1.6
|
||
|
set protocols bgp 65533 parameters router-id 1.1.1.6
|
||
|
|
||
|
set protocols bgp 65533 network 172.16.8.0/24
|
||
|
commit
|
||
|
save
|
||
|
exit
|
||
|
|
||
|
PC1
|
||
|
|
||
|
cat /etc/network/interfaces
|
||
|
|
||
|
auto eth0
|
||
|
iface eth0 inet static
|
||
|
address 10.0.0.2
|
||
|
netmask 255.255.255.0
|
||
|
gateway 10.0.0.1
|
||
|
|
||
|
PC2
|
||
|
|
||
|
cat /etc/network/interfaces
|
||
|
|
||
|
auto eth0
|
||
|
iface eth0 inet static
|
||
|
address 192.168.4.2
|
||
|
netmask 255.255.255.0
|
||
|
gateway 192.168.4.1
|
||
|
|
||
|
PC3
|
||
|
|
||
|
cat /etc/network/interfaces
|
||
|
|
||
|
auto eth0
|
||
|
iface eth0 inet static
|
||
|
address 172.16.8.2
|
||
|
netmask 255.255.255.0
|
||
|
gateway 172.16.8.1
|
||
|
|