Explain the basic Wan routing technology in detail using instances

Source: Internet
Author: User
Tags domain name server

We assume that the reader has a certain degree of understanding of the IP protocol and does not know that the IP protocol will never be able to maintain an IP network. For example, the reader must at least understand the IP address structure, category, subnet, and subnet mask concepts, have basic computer knowledge. When configuring a vro, you only need to connect the computer's serial port to the Console port through the dedicated cable provided by the vro and use software such as a super terminal or Netterm.

There is only one network adapter and one IP address in the network.) any host can only directly access the machines in the subnetwork. A vro is equivalent to a host with multiple NICs. Each Nic can communicate directly with a subnet. As we know, the two networks are connected by establishing a WAN subnet. There are only two machines in this subnet, namely the routers on both sides. Of course, its subnet mask is 255.255.255.252. As long as the Seiral ports of vroa A and vrob B are in the same subnet and their Ethernet ports belong to the and B networks respectively, we have established A channel between the and B networks. As long as A host in Network A sets the gateway as router A, its information can be forwarded to Network B through router A and router B.

In this example, we use the most widely used Cisco 2501 router. the physical structure of this router is simple. The network interface only has two Serial ports and one Ethernet port, but supports the complete routing function. The protocol used is TCP/IP, because other protocols such as IPX and Netbeui are outdated.

Instance 1: connect a lan to B LAN through Cisco 2501

--------------------------------------------------------------------------------

Assume that the experiment conditions are as follows:

Network A: 202.96.199.0 -- 202.96.199.255

Network B: 202.97.76.0 -- 202.97.76.31

DNS Server: 202.96.199.2 (master), 202.96.199.3 (Backup)

Domain: xxx.com

Wan Interconnection: a subnet containing four IP addresses (two available IP addresses) is required,

Set to: 202.98.0.0 -- 202.98.0.3, where 202.98.0.1 is sent to Network A and 202.98.0.2 to Network B.

Interconnected leased line rate: 128 kbps

The specific network parameter allocation table is as follows:

Project

Network

Network B

Network ID

202.96.199.0

202.97.76.0

Subnet Mask

255.255.255.0

255.255.255.224

Domain

Xxx.com

Yyy.com

Ethernet address

202.96.199.1

202.97.76.1

IP address

202.98.0.1

202.98.0.2

Leased Line Rate

128 kbps

Same as left

Domain Name Server

MASTER: 202.96.199.2

Backup: 202.96.199.3

Same as left

First, enter the vro: connect your computer's serial port to the Console port of the vro and log on to the vro。 using software such as Netterm or Super Terminal.

Router> en:

Passwd: ****** (enter the super password)

Global configuration: Same as Network A and Network B)

Router # conf terminal (switch to configuration status)

Router (config) # enable secret my-root-password (define a super password)

Router (config) # ip host Router-A defines the vro name, and network B is Router-B)

Router (config) # ip domain-name xxx.com defines the domain name, Network B is yyy.com)

Router (config) # nameserver 202.96.199.2 defines the Primary Domain Name Server)

Router (config) # nameserver 202.96.199.3 defines the backup Domain Name Server)

Router (config) # ip classless

Router (config) # line vty 0 4

Define five telnet virtual terminals, that is, five people can log on to the vrotelnet at the same time)

Router (config-line) # password my-telnet-password defines the telnet password)

Router (config-line) # exit

Router (config) # exit

Address and route Configuration:

/****** A network vro ******/

Router-A # conf t (switch to configuration status)

Router-A (config) # int e0 (Ethernet 0 port configured)

Router-A (config-if) # description the LAN port link to my local network port description)

Router-A (config-if) # ip add 202.96.199.1 255.255.255.0

Defines an Ethernet IP address. The subnet mask is represented as a class C network)

Router-A (config-if) # no shutdown activation port)

Router-A (config-if) # exit

Router-A (config) # int s0 (configure the Serial 0 port)

Router-A (config-if) # description the WAN port link to Router-B port description)

Router-A (config-if) # ip add 202.98.0.1 255.255.255.255.252 defines the ip address of the interconnected Wan)

Router-A (config-if) # bandwidth 128 defines the port speed, in kbps)

Router-A (config-if) # no shutdown activation port)

Router-A (config-if) # exit

Router-A (config) # ip route 202.97.76.0 255.255.255.255.202.98.0.2

Define a static route to reach the peer LAN through the gateway. The IP address is the peer Wan IP address)

Router-A (config) # exit

Router-A # wr m (save configuration)

/****** B network vro ******/

Router-B # conf t

Router-B (config) # int e0

Router-B (config-if) # description the LAN port link to my local network port description)

Router-B (config-if) # ip add 202.97.76.1 too many requests

Defines an Ethernet IP address. The subnet mask is a subnet with 32 addresses)

Router-B (config-if) # no shutdown

Router-B (config-if) # exit

Router-B (config) # int s0

Router-B (config-if) # description the WAN port link to Router-A port description)

Router-B (config-if) # ip add 202.98.0.2 255.255.255.252

Router-B (config-if) # bandwidth 128

Router-B (config-if) # no shutdown

Router-B (config-if) # exit

Router-B (config) # ip route 202.96.199.0 route 255.255.0 202.98.0.1

Define a static route to reach the peer LAN through the gateway. The IP address is the peer Wan IP address)

Router-B (config) # exit

Router-B # wr m (save configuration)

Configuration complete.


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.