· 6 years ago · Mar 10, 2019, 10:44 AM
1
2
3
4root@squeeze:/etc/quagga# route
5Kernel IP routing table
6Destination Gateway Genmask Flags Metric Ref Use Iface
7192.168.100.0 192.168.1.1 255.255.255.252 UG 791 0 0 eth1
8192.168.100.8 192.168.1.1 255.255.255.252 UG 791 0 0 eth1
9192.168.100.12 192.168.1.1 255.255.255.252 UG 1572 0 0 eth1
10192.168.100.20 192.168.1.1 255.255.255.252 UG 1572 0 0 eth1
11192.168.14.0 192.168.1.1 255.255.255.128 UG 802 0 0 eth1
12192.168.13.0 192.168.1.1 255.255.255.128 UG 1583 0 0 eth1
13192.168.4.0 192.168.1.1 255.255.255.128 UG 792 0 0 eth1
14192.168.12.0 192.168.1.1 255.255.255.128 UG 802 0 0 eth1
15192.168.3.0 192.168.1.1 255.255.255.128 UG 1573 0 0 eth1
16192.168.11.0 * 255.255.255.128 U 0 0 0 eth1.100
17192.168.2.0 192.168.1.1 255.255.255.128 UG 792 0 0 eth1
18192.168.1.0 * 255.255.255.128 U 0 0 0 eth1
19192.168.130.0 * 255.255.255.0 U 0 0 0 eth0
20default 192.168.130.254 0.0.0.0 UG 0 0 0 eth0
21
22
23---------------------------------------------
24
25 192.168.12.0/25 is subnetted, 1 subnets
26O 192.168.12.0 [110/792] via 192.168.100.2, 00:01:17, Serial0.102
27 192.168.13.0/25 is subnetted, 1 subnets
28O 192.168.13.0 [110/1573] via 192.168.100.2, 00:01:17, Serial0.102
29 [110/1573] via 192.168.100.10, 00:01:17, Serial0.104
30 192.168.14.0/25 is subnetted, 1 subnets
31O 192.168.14.0 [110/792] via 192.168.100.10, 00:01:17, Serial0.104
32 192.168.11.0/25 is subnetted, 1 subnets
33O 192.168.11.0 [110/11] via 192.168.1.2, 00:01:19, FastEthernet0
34 192.168.4.0/25 is subnetted, 1 subnets
35O 192.168.4.0 [110/782] via 192.168.100.10, 00:01:19, Serial0.104
36 192.168.254.0/32 is subnetted, 1 subnets
37C 192.168.254.1 is directly connected, Loopback1
38 192.168.1.0/25 is subnetted, 1 subnets
39C 192.168.1.0 is directly connected, FastEthernet0
40 192.168.2.0/25 is subnetted, 1 subnets
41O 192.168.2.0 [110/782] via 192.168.100.2, 00:01:23, Serial0.102
42 192.168.100.0/30 is subnetted, 4 subnets
43O 192.168.100.12 [110/1562] via 192.168.100.2, 00:01:23, Serial0.102
44C 192.168.100.8 is directly connected, Serial0.104
45C 192.168.100.0 is directly connected, Serial0.102
46O 192.168.100.20 [110/1562] via 192.168.100.10, 00:01:24, Serial0.104
47 192.168.3.0/25 is subnetted, 1 subnets
48O 192.168.3.0 [110/1563] via 192.168.100.2, 00:01:24, Serial0.102
49 [110/1563] via 192.168.100.10, 00:01:24, Serial0.104
50
51
52
53----------------------------
54
55router ospf 1
56 log-adjacency-changes
57 network 192.168.1.0 0.0.0.127 area 0
58 network 192.168.100.0 0.0.0.3 area 0
59 network 192.168.100.8 0.0.0.3 area 0
60!
61
62
63
64-----------------------
65
66
67lisbonne#sh ip ospf 1 neighbor
68
69Neighbor ID Pri State Dead Time Address Interface
70192.168.11.2 1 FULL/BDR 00:00:30 192.168.1.2 FastEthernet0
71
72---------------------
73
74
75lisbonne#sh ip ospf int F 0
76FastEthernet0 is up, line protocol is up
77 Internet Address 192.168.1.1/25, Area 0
78 Process ID 1, Router ID 192.168.254.1, Network Type BROADCAST, Cost: 1
79 Transmit Delay is 1 sec, State DR, Priority 42
80 Designated Router (ID) 192.168.254.1, Interface address 192.168.1.1
81 Backup Designated router (ID) 192.168.130.80, Interface address 192.168.1.2
82 Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
83 Hello due in 00:00:08
84 Index 1/1, flood queue length 0
85 Next 0x0(0)/0x0(0)
86 Last flood scan length is 2, maximum is 2
87 Last flood scan time is 0 msec, maximum is 0 msec
88 Neighbor Count is 1, Adjacent neighbor count is 1
89 Adjacent with neighbor 192.168.130.80 (Backup Designated Router)
90 Suppress hello for 0 neighbor(s)
91
92
93
94---------------------------
95
96-No. Time Source Destination Protocol Info
97 1285 3475.082540 192.168.1.1 224.0.0.5 OSPF Hello Packet
98
99Frame 1285 (82 bytes on wire, 82 bytes captured)
100Ethernet II, Src: Cisco_09:32:5b (00:09:43:09:32:5b), Dst: IPv4mcast_00:00:05 (01:00:5e:00:00:05)
101Internet Protocol, Src: 192.168.1.1 (192.168.1.1), Dst: 224.0.0.5 (224.0.0.5)
102Open Shortest Path First
103 OSPF Header
104 OSPF Version: 2
105 Message Type: Hello Packet (1)
106 Packet Length: 48
107 Source OSPF Router: 192.168.254.1 (192.168.254.1)
108 Area ID: 0.0.0.0 (Backbone)
109 Packet Checksum: 0xee47 [correct]
110 Auth Type: Null
111 Auth Data (none)
112 OSPF Hello Packet
113 Network Mask: 255.255.255.128
114 Hello Interval: 10 seconds
115 Options: 0x02 (E)
116 Router Priority: 42
117 Router Dead Interval: 40 seconds
118 Designated Router: 192.168.1.2
119 Backup Designated Router: 192.168.1.1
120 Active Neighbor: 192.168.11.2
121
122
123
124-------------------------
125
126lisbonne#sh ip ospf 1 0 int
127FastEthernet0 is up, line protocol is up
128 Internet Address 192.168.1.1/25, Area 0
129 Process ID 1, Router ID 192.168.254.1, Network Type BROADCAST, Cost: 1
130 Transmit Delay is 1 sec, State BDR, Priority 1
131 Designated Router (ID) 192.168.11.2, Interface address 192.168.1.2
132 Backup Designated router (ID) 192.168.254.1, Interface address 192.168.1.1
133 Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
134 Hello due in 00:00:09
135 Index 1/1, flood queue length 0
136 Next 0x0(0)/0x0(0)
137 Last flood scan length is 1, maximum is 1
138 Last flood scan time is 0 msec, maximum is 0 msec
139 Neighbor Count is 1, Adjacent neighbor count is 1
140 Adjacent with neighbor 192.168.11.2 (Designated Router)
141 Suppress hello for 0 neighbor(s)
142
143
144--------------------------
145
146lisbonne#sh ip route
147...
148 192.168.11.0/25 is subnetted, 1 subnets
149O 192.168.11.0 [110/11] via 192.168.1.2, 00:09:19, FastEthernet0
150 192.168.254.0/32 is subnetted, 1 subnets
151C 192.168.254.1 is directly connected, Loopback1
152 192.168.1.0/25 is subnetted, 1 subnets
153C 192.168.1.0 is directly connected, FastEthernet0
154
155
156
157--------------------------------------
158
159interface FastEthernet0
160 ip address 192.168.1.1 255.255.255.128
161 speed auto
162!
163
164!
165router ospf 1
166 log-adjacency-changes
167 network 192.168.1.0 0.0.0.127 area 0
168!
169
170
171
172
173----------------------------------------------
174
175ospfd# sh ru
176
177Current configuration:
178!
179hostname ospfd
180password zebra
181log file /var/log/quagga/ospf.log
182!
183!
184!
185interface eth0
186!
187interface eth1
188!
189interface eth1.100
190!
191interface eth2
192!
193interface lo
194!
195interface wlan0
196!
197router ospf
198 network 192.168.1.0/25 area 0.0.0.0
199 network 192.168.11.0/25 area 0.0.0.0
200!
201line vty
202!
203end