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

三层交换实现DHCP功能

vlan davlan 10vlan 20vlan 30vlan 40exitconf terint vlan 10ip add 192.168.1.1 255.255.255.0int vlan 20ip add 192.168.2.1 255.255.255.0int vlan 30ip add 192.168.3.1 255.255.255.0int vlan 40ip add 192.168.4.1 255.255.255.0ip routingip dhcp excluded-address 192.168.1.1ip dhcp excluded-address 192.168.2.1ip dhcp excluded-address 192.168.3.1ip dhcp excluded-address 192.168.4.1ip dhcp pool 1net 192.168.1.0 255.255.255.0default-ro 192.168.1.1dns-server 1.1.1.1ip dhcp pool2net 192.168.2.0 255.255.255.0default-ro 192.168.2.1dns-server 1.1.1.1ip dhcp pool3net 192.168.3.0 255.255.255.0default-ro 192.168.3.1dns-server 1.1.1.1ip dhcp pool4net 192.168.4.0 255.255.255.0default-ro 192.168.4.1dns-server 1.1.1.1exitSW1:conf terint f0/1sw acc vlan 10exitint f0/2sw acc vlan 20exitint f0/3sw mode trunksw trunk allowed vlan allexitSW2:conf terint f0/1sw acc vlan 30exitint f0/2sw acc vlan 40exitint f0/3sw mode trunksw trunk allowed vlan allexit测试:Packet Tracer PC Command Line 1.0PC>ipconfig /all
FastEthernet0 Connection:(default port)Physical Address................:0030.F2BB.C910Link-local IPv6 Address.........:FE80::230:F2FF:FEBB:C910IP 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>ipconfig /all
FastEthernet0 Connection:(default port)Physical Address................:0030.F2BB.C910Link-local IPv6 Address.........:FE80::230:F2FF:FEBB:C910IP 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>ping 192.168.4.2
Pinging 192.168.4.2 with 32 bytes of data:
Request timed out.Reply from 192.168.4.2: bytes=32 time=0msTTL=127Reply from 192.168.4.2: bytes=32 time=15msTTL=127Reply from 192.168.4.2: bytes=32 time=16msTTL=127
Ping statistics for 192.168.4.2:Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),Approximate round trip times inmilli-seconds:Minimum = 0ms, Maximum = 16ms, Average = 10ms
PC>ping 192.168.3.2
Pinging 192.168.3.2 with 32 bytes of data:
Request timed out.Reply from 192.168.3.2: bytes=32 time=0msTTL=127Reply from 192.168.3.2: bytes=32 time=0msTTL=127Reply from 192.168.3.2: bytes=32 time=15msTTL=127
Ping statistics for 192.168.3.2:Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),Approximate round trip times inmilli-seconds:Minimum = 0ms, Maximum = 15ms, Average = 5ms
PC>ping 192.168.2.2
Pinging 192.168.2.2 with 32 bytes of data:
Request timed out.Reply from 192.168.2.2: bytes=32 time=16msTTL=127Reply from 192.168.2.2: bytes=32 time=15msTTL=127Reply from 192.168.2.2: bytes=32 time=0msTTL=127
Ping statistics for 192.168.2.2:Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),Approximate round trip times inmilli-seconds:Minimum = 0ms, Maximum = 16ms, Average = 10ms

zeromax 发表于 2013-8-16 14:53:03

读书读到抽筋处,文思方能如尿崩!

hongleimi 发表于 2013-8-18 11:09:35

生活***好玩,因为生活老***玩我!

小时? 发表于 2013-8-19 16:52:41

男人偷腥时的智商仅次于爱因斯坦!

jxdiscuz 发表于 2013-8-24 11:27:51

所有的男人生来平等,结婚的除外。

julley 发表于 2013-8-26 17:28:52

只有假货是真的,别的都是假的!

jarod8016b 发表于 2013-8-29 16:16:47

爱——不是想出来的,爱——是做出来的!!
页: [1]
查看完整版本: 三层交换实现DHCP功能