Академический Документы
Профессиональный Документы
Культура Документы
Naveen Patel
Static Routing For Multiple Routers - Network Diagram
10.0.0.1/8 11.0.0.1/8
S0 S0
Naveen Patel
Disadvantages of Static Routing
Naveen Patel
Default Routing
unknown destinations.
are unknown.
Naveen Patel
Default Routing - Real Time Example
INTERNET
HYD
E0 E0
192.168.1.1/24 202.54.30.150/24
LAN - 192.168.1.0/24
IP 202.54.30.1/24
Naveen Patel
Default Routing - Network Diagram
10.0.0.1/8 11.0.0.1/8
S0 S0
Naveen Patel
Naveen Patel
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
telnet 192.168.1.1
C:\>
Connecting .....
================================
Welcome to Hyderabad Router
Directly Connected
Directly Connected Networks
================================ Networks on
on
User Access Verification HYDERABAD Router
HYDERABAD Router
password : **** 192.168.1.0
192.168.1.0
Hyderabad> enable 10.0.0.0
10.0.0.0
password : ****
Hyderabad# configure terminal
Indirectly
Indirectly
Enter configuration Connected
Connected
commands, Networks
one perNetworks on
on
line. End with CNTL/Z.
HYDERABAD
HYDERABAD
Hyderabad(config)# interface Router
serial 0Router
192.168.2.0
Hyderabad(config-if)# ip address 10.0.0.1 255.0.0.0
192.168.2.0
Hyderabad(config-if)# no shut
192.168.3.0
192.168.3.0
Hyderabad(config-if)# clockrate 64000
11.0.0.0
11.0.0.0
Hyderabad(config-if)# encapsulation hdlc
Hyderabad(config-if)# exit
Hyderabad(config)#
Diagram
Naveen Patel
Hyderabad(config)# no ip routing
Hyderabad(config)# ip routing
Hyderabad(config)# ip route 192.168.2.0 255.255.255.0 10.0.0.2
Hyderabad(config)# ip route 192.168.3.0 255.255.255.0 10.0.0.2
Hyderabad(config)# ip route 11.0.0.0 255.0.0.0 10.0.0.2
Hyderabad(config)#
Diagram
Naveen Patel
Hyderabad(config)# no ip routing
Hyderabad(config)# ip routing
Hyderabad(config)# ip route 192.168.2.0 255.255.255.0 10.0.0.2
Hyderabad(config)# ip route 192.168.3.0 255.255.255.0 10.0.0.2
Hyderabad(config)# ip route 11.0.0.0 255.0.0.0 10.0.0.2
Hyderabad(config)# ^Z
Hyderabad# show 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,*- candidate default
U - per-user static route, o - ODR
Diagram
Naveen Patel
Chennai(config-if)# exit
Chennai(config)# no ip routing
Chennai(config)# ip routing
Chennai(config)# ip route 192.168.1.0 255.255.255.0 10.0.0.1
Chennai(config)# ip route 192.168.3.0 255.255.255.0 11.0.0.2
Chennai(config)# ^Z
Chennai# show 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,*- candidate default
U - per-user static route, o - ODR
Diagram
Naveen Patel
Banglore(config)# no ip routing
Banglore(config)# ip routing
Banglore(config)# ip route 192.168.2.0 255.255.255.0 11.0.0.1
Banglore(config)# ip route 192.168.1.0 255.255.255.0 11.0.0.1
Banglore(config)# ip route 10.0.0.0 255.0.0.0 11.0.0.1
Banglore(config)# ^Z
Banglore# show 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,*- candidate default
U - per-user static route, o - ODR
Configuring
ConfiguringDefault
DefaultRoute
Route
Router(config)#
Router(config)#ipiproute
route<Destination
<DestinationNetwork
NetworkID>
ID>
<Destination
<DestinationSubnet
SubnetMask>
Mask>
<Next-hop
<Next-hopIP IPaddress
address>
>
Or
Or
Router(config)#
Router(config)#ipiproute
route<Destination
<DestinationNetwork
NetworkID>
ID>
<Destination
<DestinationSubnet
SubnetMask>
Mask>
<Exit
<Exitinterface
interfacetype><interface
type><interfacenumber>
number>
Diagram
Naveen Patel
Hyderabad(config)# no ip routing
Hyderabad(config)# ip routing
Hyderabad(config)# ip route 0.0.0.0 0.0.0.0 s0
Hyderabad(config)# ^Z
Hyderabad# show 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,*- candidate default
U - per-user static route, o - ODR
**for
forDefault
DefaultRoute
Route
Diagram
Naveen Patel
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.
telnet 192.168.3.1
C:\>
Connecting .....
================================
Welcome to Banglore Router
================================
User Access Verification
password : ****
Banglore> enable
password : ****
Banglore# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Banglore(config)# interface serial 1
Banglore(config-if)# ip address 11.0.0.2 255.0.0.0
Banglore(config-if)# no shut
Banglore(config-if)# clockrate 64000
Banglore(config-if)# encapsulation hdlc
Banglore(config-if)# exit
Banglore(config)#
Diagram
Naveen Patel
Banglore(config)# no ip routing
Banglore(config)# ip routing
Banglore(config)# ip route 0.0.0.0 0.0.0.0 s1
Banglore(config)#
Diagram
Naveen Patel
Banglore(config)# no ip routing
Banglore(config)# ip routing
Banglore(config)# ip route 0.0.0.0 0.0.0.0 s1
Banglore(config)# ^Z
Banglore# show 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,*- candidate default
U - per-user static route, o - ODR
**for
forDefault
DefaultRoute
Route
Diagram
Naveen Patel
Hyderabad(config)# no ip routing
Hyderabad(config)# ip routing
Hyderabad(config)# ip route 0.0.0.0 0.0.0.0 s0
Hyderabad(config)# ^Z
Hyderabad# show 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,*- candidate default
U - per-user static route, o - ODR
Diagram
Naveen Patel
Chennai# ping 192.168.1.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
Chennai# ping 192.168.3.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.3.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
Chennai#
Diagram
Naveen Patel
Banglore# ping 192.168.1.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.1.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
Banglore# ping 192.168.2.10
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.10, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/43/44 ms
Banglore#
Diagram
Naveen Patel