Professional Documents
Culture Documents
8
8
8
_______________________________________________________
Router1> en
Router1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# router eigrp 100
Router1(config-router)# network 10.0.0.0
Router2> en
Router2# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router2(config)# router eigrp 100
Router2(config-router)# network 10.0.0.0
_______________________________________________________
Router1> en
Router1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# router eigrp 100
Router1(config-router)# network 192.168.1.0 0.0.0.15
Router1(config-router)# network 10.1.1.0 0.0.0.255
Router1(config-router)# network 172.16.1.1 0.0.0.0
_______________________________________________________
Router1> en
Router1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# router eigrp 100
Router1(config-router)# network 10.1.1.1 0.0.0.0
Router1(config-router)# network 192.168.168.185 0.0.0.0
_______________________________________________________
Enable EIGRP in AS 100 with as few commands as posible to get a fully functioning
network, but without using the network 0.0.0.0
Sart with Ethernet 0 (192.168.1.1/28), then Loopback 0 (172.16.1.1 /32) and then
Serial 0 (10.1.1.1 /24)
Make sure that EIGRP advertises routes correctly (Hint: VLSM)
Router1> en
Router1# conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router1(config)# router eigrp 100
Router1(config-router)# network 192.168.1.1 0.0.015
Router1(config-router)# network 172.16.0.0
Router1(config-router)# network 10.0.0.0
Router1(config-router)# no auto-summary
_______________________________________________________
==NAT setup==
f0/0 R1 f0/1 <-> Cloud
R1#conf t
R1(config)#int f0/1
R1(config-if)#ip nat outside
R1(config-if)#int f0/0
R1(config-if)#ip nat inside
R1(config-if)#exit
==PAT / NAT Overload Access List setup==
> Permit all devices on the 10 network
R1(config)#ip nat inside source list 1 interface f0/1 overload
R1(config)#access-list 1 permit 10.0.0.0 0.255.255.255
==Enable DNS==
R1(config)#ip domain-lookup
R1(config)#ip name-server 8.8.8.8
_______________________________________________________
OSPF Tables
1) IP OSPF Neighbor Table
- List of neighbors shown in Adjacency Table / OSPF Neighbor Table
==Show Table=
R1#show ospf neighbors
2) IP OSPF Topology Database (LSDB Link State Database)
- LSDB contains all routers and attached links in area/network
- All OSPF routers in the same area share the same database
3) IP Routing Table (Forwarding Table)
- Best routes are placed here
OSPF ABR
- BENEFITS: Summarization of routes
ex. Area 1: 10.1.1.0/24 - 10.1.100.0/24, the ABR can summarize the routes as
10.1.0.0 /16
ex. Area 1: 10.2.1.0/24 - 10.2.100.0/24, the ABR can summarize the routes as
10.2.0.0 /16
OSPF Router ID
- Chosen based on:
1) Manual configuration
2) Highest Loopback interface (never go down)
3) Highest IP address (physical interface)
4) Everything else
==Specify OSPF Router ID==
> High IP address is 10.1.1.1
*****using ospf 1 is local to the router, it does not need to match other routers
R1#conf t
R1(config)#router ospf 1
==Refresh OSPF Router ID (assume there is a higher IP address than current)==
R1(config)#no router ospf 1
R1(config)#router ospf 1
==Manual OSPF Router ID==
R1(config)#router ospf 1
R1(config-router)#router-id 192.168.1.1 (arbitrary)
==Setup OSPF Network==
> This step is needed, otherwise OSPF will not work
R1(config-router)#network 10.1.1.0 0.0.0.255 area 0
==Show OSPF info==
R1#show ip ospf int
R1#show ip ospf int brief
R1#show ip ospf neighbor
R1#show ip ospf database
==Enable OSPF inside interface==
R1(config)#int g0/0
R1(config)#ip address 10.1.1.0 0.0.0.255
R1(config-if)#ip ospf 1 area 0 (?)
==Configure OSPF timers==
> To adjust timers, simply adjust it to Broadcast, it might be set to Non-Broadcast
R1(config)#int g0/0
R1(config-if)#ip ospf network broadcast
OSPF DR Process
R1 (DR) <-> R2 (BDR Backup DR) <-> R3,4,5,6
1) R1 goes down, R1 updates R2 through multicast 224.0.0.6
2) R2 receives multicast 224.0.0.5, that R1 went down
3) R2 sends multicast 224.0.0.5 to all OSPF routers R3,4,5,6
4) All active OSPF routers are now acknowledged that network has gone down
**If no DR, then all routers are adjaceny routers and all routers will multicast to
each other (saves update and duplicated traffic)
**Only Main DR and Backup DR has full relationships with all OSPF routers
**Every ethernet segment requires the maintenance and electric of its own DR
(10.1.1.0/24 and 10.1.2.0/24 are two different)
***DR is not preemptive (ex. if R2 (priority 10) goes down and R5 (priority 5)
becomes DR and R3 becomes BDR and if R2 comes back online, R2 will not become DR
again because DR already exist even though R2 has highest priority - not
preemptive. R2 will become DRO DR Other) - will not host another election
OSPF SPF Algorithm
- Default reference bandwidth = 100mbps (cost of 1)
- Cost = 10^8 / bandwidth
(Note: Bandwidth of 10Mbps = 10,000,000bps, therefore Cost of 10Mbps =
100,000,000 / 10,000,000 = 10)
(Note: Bandwidth of 1.544Mbps = 15,440,000bps, Cost = 64)
*****
==Total OSPF setup==
R1#conf t
R1(config)#interface f0/0
R1(config-if)#ip address 10.1.1.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#interface f0/1
R1(config-if)#ip address 10.1.2.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#router ospf 1
R1(config-router)#network 10.1.1.1 0.0.0.0 area 0
R1(config-router)#network 10.1.2.1 0.0.0.0 area 0
R1(config-router)#interface loop 0
R1(config-if)#ip address 1.1.1.1 255.255.255.255
R1(config-if)#router ospf 1
R1(config-router)#network 1.1.1.1 0.0.0.0 area 0
> OR enable all networks [R1(config-router)#network 0.0.0.0 255.255.255.255 area 0]
*Routers that are connected to each other (usually via Serial) is Point-to-Point.
**Point-to-Point does not require an election
***Even if loopback's network is not a part of the OSPF interface, loopback's
network will be the Router ID
==Optional:Change Router ID manually==
R1(config-router)#router-id 1.1.1.1
R1(config-router)#clear ip ospf process
OSPF States
Full - Between DR and BDR
2WAY - Between DROTHER DR Other
==Turn on logging==
R1(config)#logging console
==Turn on logging (telnet/ssh)==
R1(config)#term mon
***Router Types
- ABR Area Border Router - separate routers with different areas, always touch
Backbone
- ASBR Autonomous System Border Router - seperates routers with different routing
protocols (between EIRP and OSPF)
- Internal Router - does not touch other routers