China three routers do DHCP relay

Source: Internet
Author: User

650) this.width=650; "title=" qq20150713204735.jpg "src=" http://s3.51cto.com/wyfs02/M00/6F/A2/wKioL1WjtU_D5FKmAAE_ 2sy80_y301.jpg "alt=" Wkiol1wjtu_d5fkmaae_2sy80_y301.jpg "/>

R1 on :

[H3c]sysname DHCPServer

[Dhcpserver]int s1/0

[Dhcpserver-serial1/0]ip address 12.1.1.1 255.255.255.0

[Dhcpserver-serial1/0]undo Shu

[Dhcpserver-serial1/0]link-protocol?

Fr Frame Relay Protocol

HDLC High-level Data Link Control Protocol

PPP Point-to-Point Protocol

STLP Synchronization Transparent Transport Link protocol

[Dhcpserver-serial1/0]link-protocol PPP

[Dhcpserver-serial1/0]exit

[Dhcpserver]ip route-static 23.2.2.0 255.255.255.0 12.1.1.2

[DHCPServer] DHCP Enable

[DHCPServer] DHCP server Ip-pool Wudi

[Dhcpserver-dhcp-pool-wudi] Network 23.2.2.0 Mask 255.255.255.0

[Dhcpserver-dhcp-pool-wudi] gateway-list 23.2.2.2

[Dhcpserver-dhcp-pool-wudi]quit

[Dhcpserver]save

R2 on

System View:return to User View with Ctrl + Z.

[H3c]sysname Dhcprelay

[Dhcprelay]dhcp Enable

[Dhcprelay]int s1/0

[Dhcprelay-serial1/0]ip address 12.1.1.2 255.255.255.0

[Dhcprelay-serial1/0]undo Shu

[Dhcprelay-serial1/0]qui

[Dhcprelay] int g0/0

[Dhcprelay-gigabitethernet0/0]ip Add 23.2.2.2 255.255.255.0

[Dhcprelay-gigabitethernet0/0]undo Shu

[dhcprelay-gigabitethernet0/0] DHCP Select relay

[dhcprelay-gigabitethernet0/0] DHCP relay server-address 12.1.1.1

R3 on

[H3c]sysname dhcpclient

[Dhcpclient] int g0/0

[dhcpclient-gigabitethernet0/0] IP Add dhcp-alloc

Validation :

R3

[Dhcpclient]dis IP int b

*down:administratively down

(s): Spoofing (L): Loopback

Interface physical Protocol IP address Description

ge0/0 up 23.2.2.1--

GE0/1 down----

GE0/2 down----

ge5/0 down----

GE5/1 down----

ge6/0 down----

GE6/1 down----

ser1/0 down----

ser2/0 down----

ser3/0 down----

ser4/0 down----

[Dhcpclient]dis DHCP Client

gigabitethernet0/0 DHCP Client Information:

Current State:bound

Allocated ip:23.2.2.1 255.255.255.0

Allocated lease:86400 seconds, t1:38293 seconds, t2:75600 seconds

DHCP server:12.1.1.1

R1

[Dhcpserver]dis DHCP server Ip-in-use

IP address Client identifier/lease expiration Type

Hardware Address

23.2.2.1 0033-3234-302e-3664-jul 9 15:37:35 Auto (C)

3234-2e30-3330-352d-

4745-302f-30

R1

[Dhcpserver]ping 23.2.2.1

Ping 23.2.2.1 (23.2.2.1): Data bytes, press Ctrl_c to break

Bytes from 23.2.2.1:icmp_seq=0 ttl=254 time=2.211 ms

Bytes from 23.2.2.1:icmp_seq=1 ttl=254 time=1.382 ms

Bytes from 23.2.2.1:icmp_seq=2 ttl=254 time=2.971 ms

Bytes from 23.2.2.1:icmp_seq=3 ttl=254 time=1.370 ms

Bytes from 23.2.2.1:icmp_seq=4 ttl=254 time=1.787 ms

---Ping statistics for 23.2.2.1---

5 packets transmitted, 5 packets received, 0.0% packet loss

Round-trip Min/avg/max/std-dev = 1.370/1.944/2.971/0.599 ms

This article is from the "Bury All Unknown Happiness" blog, please be sure to keep this source http://ykxing.blog.51cto.com/893330/1673898

China three routers do DHCP relay

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.