DDN configuration instance in LAN of blue Homestead

Source: Internet
Author: User

For an external connection to a LAN, there are many ways ddnleased line is one of the specific external connection methods, please refer to the basic part of the Network ). the following example describes the configuration of LAN access to the local ISP in the blue homestead.

LAN in blue homestead: 10.1.8.0/24

Ethernet 0: 10. 1.8.1/24

Serial 0: 192.168.0.1/30

ISP router Serial 0: 192.168.0.2/30

The topology is as follows:

 

Maybe the virtual nature of Cisco's operating system and its market share determine people's admiration for its technology, and even want to bind their technical goal to Cisco. however, technology is always a technology, and everything starts from scratch.

The following describes the basic configurations of the blue home router.

1. route> en enters the privileged state

2. Configure route # config t through the port

3. In the configuration status

E0/S0 IP Address

# Int e0/0

# Ip add 10.1.8.1 255.255.255.0

# No shut

# Int s0/0

# Ip add 192.168.0.1 255.255.255.255.252

# En ppp)

# No shut

4. Route the blue home to ISP. Because there is only one way out of the blue home, a static route is provided.

# Ip route 0.0.0.0 0.0.0.0 192.168.0.2

Or

# Ip route 0.0.0.0 0.0.0.0 serial 0

5. To ensure remote management of Telnet, login users must be provided

# Line vty 0 4

# Password bluegarden

6. Press Ctrl + Z to exit the privileged configuration status. wr writes the configuration to the vro.

Of course, the above is only a basic configuration that ensures smooth data tunnel, but does not fully utilize the functions of the router, such as NAT and security.

The following provides a complete configuration with NAT (for the sake of clarity, the subnet in the WAN connection is changed to 192.168.1.0/24)

 

Hostname bluegarden

!

Enable password bluegarden

!

No ip name-server

!

Ip subnet-zero

No ip domain-lookup

Ip routing

!

Interface Ethernet 0

No shutdown

Ip address 10.1.8.1 255.255.255.0

Ip address 192.16.1.1 255.255.255.0

Ip nat inside

!

Interface Serial 0

No shutdown

Ip address 192.168.1.2 255.255.255.0

Ip nat outside

Encapsulation hdlc

Ip nat pool bluegarden 192.16.1.10 192.168.50 prefix-length 24

Ip nat inside source list 1 pool bluegarden

Router rip

Version 2

Network 10.1.8.0 255.255.255.0

Passive-interface Serial 0

Access-list 1 permit 10.1.8.0 0.0.255

!

Ip classless

!

Ip route 0.0.0.0 0.0.0.0 Serial 0

No ip http server

Snmp-server community public RO

No snmp-server location

No snmp-server contact

!

Line console 0

Password bluegarden

Login

!

Line vty 0 4

Password bluegarden

Login

!

End

> Ctrl Z

# Wr


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.