Friday , 24 February 2017
Home » English » Default route

Default route

Lesson 1:  Configure static routing

Lesson 2:  Configuring Routing default (default route)

Configure static routing applies when you know the specific network, but if the pattern follows how you handle?

Configure default route default router (Default Route) p2

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:

Method 1:

Router (config) # ip route <0.0.0.0> <0.0.0.0> <IP nexthop>

Method 2:

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 220.222.2.1

Then in the routing table will be online Router0 S * 0.0.0.0/0 [1/0] via 220.222.2.1

And if you ping 1.1.1.1 from this Router0 then the packet will be processed like?

This time the packet is sent to the IP = 220.222.2.1 as ip = 1.1.1.1 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 220.222.2.1 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

     220.222.2.0/30 is subnetted, 1 subnets

Trực C 220.222.2.0 is connected, Serial0 / 2/0

S * 0.0.0.0/0 [1/0] via 220.222.2.1

 

Configure the routing table routing (Default Route) p2

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

Note:

+ 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:

static-route

 ISProuter (config-if) # ip address 2.2.2.2 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)

configuration file

Lượt xem (1611)

About Nguyễn Thanh Sơn

Nguyễn Thanh Sơn
Network Security, Web Design, Computer Science

Xem thêm

31_white_abstract

Denial of service vulnerability in the OpenSSL serious

OpenSSL founder recently batch processing flaw in their coding library includes a serious flaw could …

Để lại bình luận:

Loading Facebook Comments ...

Leave a Reply

Your email address will not be published. Required fields are marked *