Lesson 1: Configure static routing
Configure static routing applies when you know the specific network, but if the pattern follows how you handle?
Figure 1: Model of Internet connectivity to ISPs
Router0 and Router1 packets from the Internet via ISP Router want to, then you need to add as many network at the router. If you use static routing as part 1, you can not because that on the Internet there are countless network.
Therefore this section we configure the particular case, the default route (default route). Default route syntax is as follows:
Router (config) # ip route <0.0.0.0> <0.0.0.0> <IP nexthop>
Router (config) # ip route <0.0.0.0> <0.0.0.0> <exit interface>
+ Network 0.0.0.0 is a special place in any public network is also in this network, for example, when you search in windows if you use the * character is meant to represent all the other characters.
+ Similarly subnet mask of 0.0.0.0 always contain any other subnet mask.
Configuration in Router 0:
So if you have command Router0 (config) # ip route 0.0.0.0 0.0.0.0 22.214.171.124
Then in the routing table will be online Router0 S * 0.0.0.0/0 [1/0] via 126.96.36.199
And if you ping 188.8.131.52 from this Router0 then the packet will be processed like?
This time the packet is sent to the IP = 184.108.40.206 as ip = 220.127.116.11 0.0.0.0 of
But according to the picture if you want to send the packet to the machine under Network 172.16.1.0, why?
I simply added this network to the routing table with the command Router0
Router0 (config) # ip route 10.0.0.1 255.255.255.0 172.16.1.0
And we use the command Router # show ip route to see Router0 routing table we have:
Gateway of last resort is 18.104.22.168 to network 0.0.0.0
10.0.0.0/24 is subnetted, 1 subnets
C 10.0.0.0 is trực connected, FastEthernet0 / 0
172.16.0.0/24 is subnetted, 1 subnets
S 172.16.1.0 [1/0] via 10.0.0.1
C 192.168.1.0/24 is trực connected, FastEthernet0 / 1
22.214.171.124/30 is subnetted, 1 subnets
Trực C 126.96.36.199 is connected, Serial0 / 2/0
S * 0.0.0.0/0 [1/0] via 188.8.131.52
Figure 2: The routing table on Router0
At this point in the routing table Router0 1 1 static routing and default routing, in 2 types of this kind of static routing is preferred over (it is priority 1), and default routing highest priority, so when you ping 172.16.1.2 it will use the static route router0 and push out packets with IP = 10.0.0.1 port
+ The default route Router1 routing after
Router0 (config) # ip route 0.0.0.0 0.0.0.0 10.0.0.2
+ You can configure the default route 2 way, in the article used by 1.
Configure the ISP Router
+ In fact, it has already done all Lab but in this model we need to configure the router at the ISP because I have not configured NAT (the Network Address Translation) on Router0 (This section will cover in the next post), so It is further configured static routing in 2 router0 and Router1 with the following command:
ISProuter (config-if) # ip address 184.108.40.206 255.0.0.0
And some other loopback if you want.
+ ADSL Modem device is located as indicated on plans and ADSL Router0 configured default route (2 way) and the default NAT devices.
Configuration details you can download here (File Packet Tracer is designed in 6.x)
Lượt xem (1606)