Configure static routing to interconnect two corporate networks

Source: Internet
Author: User


Work Assignment Description

A,B Two companies have their own independent local area network. And together far (more than a few meters), now the two companies have merged, need to lay the fiber to realize the network communication and resource sharing of the two companies LAN

Question 1: What is the difference between static and dynamic routes?

Answer: static routes are fixed routes set in the router

Dynamic routing refers to the ability of routers to automatically establish their own routing table, and can be adjusted according to the actual changes in a timely manner.

Question 2: Describe the components of a route and the role of each element?

Answer " constituent elements: Routing category, destination network, subnet mask, forwarding interface, next hop gateway, administrative distance, metrics, etc.

The route class represents the category or source of the routing table

Destination network: The address of the target network (subnet) to which the shirt forwards data arrives

Subnet Mask: Calibrate the type or source of the routing table

Forwarding interface: The hardware interface of the router that reaches the destination network

Next Hop Gateway: The peer-to-peer router interface that reaches the destination network direction and this router link IP Address

Line Distance: Sets the priority of each route (0-255)

Metrics: Various routing protocols measure the path length of the destination network

Question 3: What is the difference between normal and default routes?

Answer: The default route is a special static route that the router can make when there are no matching table entries between the destination addresses of the package and the packet. If there is no default route, the package with the destination address that does not match the table entry in the routing table is discarded.




Work task implementation

1. Network topology design (Paste pt topology map, need to have IP address planning information)

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/5B/EF/wKiom1UWqC2gUpcaAACc4O7sKrA296.jpg "title=" Picture 1.png "alt=" Wkiom1uwqc2gupcaaacc4o7skra296.jpg "/>

2. Device configuration commands (each router is configured separately)

Router0

router>en

Router#conf T

Enter configuration commands, one per line. End with cntl/z.

Router (config) #int f0/0

Router (config-if) #ip ad 192.168.1.1 255.255.255.0

Router (config-if) #no sh

Router (config-if) #

%link-5-changed:interface fastethernet0/0, CHANGED state-to-up

%lineproto-5-updown:line protocol on Interface fastethernet0/0, changed

Router (config-if) #exit

Router (config) #int f1/0

Router (config-if) #ip ad 172.16.1.1 255.255.255.252

Router (config-if) #no sh

%link-5-changed:interface fastethernet1/0, CHANGED

Router (config-if) #

%link-5-changed:interface fastethernet1/0, CHANGED state-to-up

%lineproto-5-updown:line protocol on Interface fastethernet1/0, changed

Router (config-if) #exit

Router (config) #ip Route 192.168.2.0 255.255.255.0 172.16.1.2

Router1

router>en

Router#conf T

Enter configuration commands, one per line. End with cntl/z.

Router (config) #int f0/0

Router (config-if) #ip ad 192.168.2.1 255.255.255.0

Router (config-if) #no sh

Router (config-if) #

%link-5-changed:interface fastethernet0/0, CHANGED state-to-up

%lineproto-5-updown:line protocol on Interface fastethernet0/0, changed

Router (config-if) #exit

Router (config) #int f1/0

Router (config-if) #ip ad 172.16.1.2 255.255.255.252

Router (config-if) #no sh

Router (config-if) #

%link-5-changed:interface fastethernet1/0, CHANGED state-to-up

%lineproto-5-updown:line protocol on Interface fastethernet1/0, changed

Router (config-if) #exit

Router (config) #ip Route 192.168.1.0 255.255.255.0 172.16.1.1

3. Single-segment test results

Pc>ping 192.168.1.1

Pinging 192.168.1.1 with + bytes of data:

Reply from 192.168.1.1:bytes=32 time=1ms ttl=255

Reply from 192.168.1.1:bytes=32 time=0ms ttl=255

Reply from 192.168.1.1:bytes=32 time=0ms ttl=255

Reply from 192.168.1.1:bytes=32 time=0ms ttl=255

Ping statistics for 192.168.1.1:

Packets:sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in Milli-seconds:

Minimum = 0ms, Maximum = 1ms, Average = 0ms

4. Comprehensive test Results

Pc>ping 192.168.2.2

Pinging 192.168.2.2 with + bytes of data:

Reply from 192.168.2.2:bytes=32 time=0ms ttl=126

Reply from 192.168.2.2:bytes=32 time=0ms ttl=126

Reply from 192.168.2.2:bytes=32 time=0ms ttl=126

Reply from 192.168.2.2:bytes=32 time=0ms ttl=126

Ping statistics for 192.168.2.2:

Packets:sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in Milli-seconds:

Minimum = 0ms, Maximum = 0ms, Average = 0ms

5. View routes for each router

Route0

Router#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, ia-is-is Inter area

*-Candidate default, U-per-user static route, O-ODR

P-periodic downloaded static route

Gateway of last resort are not set

172.16.0.0/30 is subnetted, 1 subnets

C 172.16.1.0 is directly connected, fastethernet1/0

C 192.168.1.0/24 is directly connected, fastethernet0/0

S 192.168.2.0/24 [1/0] via 172.16.1.2

router#

Route1

Router#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, ia-is-is Inter area

*-Candidate default, U-per-user static route, O-ODR

P-periodic downloaded static route

Gateway of last resort are not set

172.16.0.0/30 is subnetted, 1 subnets

C 172.16.1.0 is directly connected, fastethernet1/0

S 192.168.1.0/24 [1/0] via 172.16.1.1

C 192.168.2.0/24 is directly connected, fastethernet0/0

router#

Work extension

If three routers are connected to four subnets, how to configure the route (see the task extensions in the textbook section), list the routes configured by each router

1. Using fine-grained routing configuration

Route0

Router (config) #ip Route 172.16.1.4 255.255.255.252 172.16.1.2

Router (config) #ip Route 192.168.2.0 255.255.255.0 172.16.1.2

CNC

Router (config) #ip Route 192.168.1.0 255.255.255.0 172.16.1.1

Router (config) #ip Route 192.168.2.0 255.255.255.0 172.16.1.5

Route1

Router (config) #ip Route 172.168.1.0 255.255.255.252 172.16.1.6

Router (config) #ip Route 192.168.1.0 255.255.255.0 172.16.1.6

2. Using the default routing configuration

Route0

Router (config) #ip Route 0.0.0.0 0.0.0.0 172.16.1.2

Route1

Router (config) #ip Route 0.0.0.0 0.0.0.0 172.16.1.6

CNC

Router (config) #ip Route 192.168.2.0 255.255.255.0 172.16.1.5

Router (config) #ip Route 192.168.1.0 255.255.255.0 172.16.1.1



This article is from the "Network Technology" blog, please be sure to keep this source http://zhufenglai.blog.51cto.com/9976129/1626026

Configure static routing to interconnect two corporate networks

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.