qder 发表于 2013-8-15 08:42:21

单臂路由实现DHCP功能

Router:vlan davlan 2vlan 3exitconf terip dhcp exc 192.168.1.1ip dhcp exc 192.168.2.1ip dhcp pool anet 192.168.1.0 255.255.255.0default-router 192.168.1.1dns-server 1.1.1.1exitip dhcp pool bnet 192.168.2.0 255.255.255.0default-router 192.168.2.1dns-server 1.1.1.1exitint f0/0no shuint f0/0.1enc do 2ip add 192.168.1.1 255.255.255.0int f0/0.2enc do 3ip add 192.168.2.1 255.255.255.0exitSwitch:conf terint range f0/1-5sw acc vlan 2int range f0/6-10sw acc vlan 3int f0/24sw mode trunksw trunk allowed vlan allexit
PC1:Packet Tracer PC Command Line 1.0PC>ipconfig /all
FastEthernet0 Connection:(default port)Physical Address................: 0090.2B16.6C58Link-local IPv6 Address.........:FE80::290:2BFF:FE16:6C58IP Address......................:192.168.1.2Subnet Mask.....................:255.255.255.0Default Gateway.................:192.168.1.1DNS Servers.....................: 1.1.1.1DHCP Servers....................:192.168.1.1

PC>ipconfig /release
IP Address......................: 0.0.0.0Subnet Mask.....................: 0.0.0.0Default Gateway.................: 0.0.0.0DNS Server......................: 0.0.0.0
PC>ipconfig /renew
IP Address......................:192.168.1.2Subnet Mask.....................:255.255.255.0Default Gateway.................:192.168.1.1DNS Server......................: 1.1.1.1
PC>ping 192.168.2.2
Pinging 192.168.2.2 with 32 bytes of data:
Reply from 192.168.2.2: bytes=32 time=15msTTL=127Reply from 192.168.2.2: bytes=32 time=0msTTL=127Reply from 192.168.2.2: bytes=32 time=16msTTL=127Reply from 192.168.2.2: bytes=32 time=15msTTL=127
Ping statistics for 192.168.2.2:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times inmilli-seconds:Minimum = 0ms, Maximum = 16ms, Average = 11msPC2:Packet Tracer PC Command Line 1.0PC>ipconfig /all
FastEthernet0 Connection:(default port)Physical Address................:00D0.FF80.55E7Link-local IPv6 Address.........:FE80::2D0:FFFF:FE80:55E7IP Address......................:192.168.2.2Subnet Mask.....................:255.255.255.0Default Gateway.................:192.168.2.1DNS Servers.....................: 1.1.1.1DHCP Servers....................:192.168.2.1

PC>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Request timed out.Reply from 192.168.1.2: bytes=32 time=0msTTL=127Reply from 192.168.1.2: bytes=32 time=30msTTL=127Reply from 192.168.1.2: bytes=32 time=0msTTL=127
Ping statistics for 192.168.1.2:Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),Approximate round trip times inmilli-seconds:Minimum = 0ms, Maximum = 30ms, Average = 10ms

色粉盒撒娇 发表于 2013-8-16 13:37:26

在一辆拥挤的公车上,一位女郎忽然叫了起来:别挤啦!别挤啦!把人家的奶都挤出来啦!(她拿着酸奶呢)。

dryu999 发表于 2013-8-18 04:35:09

禽兽尚且有半点怜悯之心,而我一点也没有,所以我不是禽兽。

jydg 发表于 2013-8-19 15:46:18

学习了,不错,讲的太有道理了

xiguaqq20 发表于 2013-8-24 04:24:30

花前月下,不如花钱“日”下!*^_^*

shanghaipc 发表于 2013-8-26 15:44:59

与时俱进,你我共赴高潮!

q987654 发表于 2013-8-29 11:26:11

勃起不是万能的,但不能勃起却是万万都不能的!
页: [1]
查看完整版本: 单臂路由实现DHCP功能