沈阳电脑维修上门服务13889116605: Router:vlandavlan2vlan3exitconfteripdhcpexc192.168.1.1ipdhcpexc192.168.2.1ipdhcppo...
Router:
vlanda
vlan2
vlan3
exit
confter
ipdhcpexc192.168.1.1
ipdhcpexc192.168.2.1
ipdhcppoola
net192.168.1.0255.255.255.0
default-router192.168.1.1
dns-server1.1.1.1
exit
ipdhcppoolb
net192.168.2.0255.255.255.0
default-router192.168.2.1
dns-server1.1.1.1
exit
intf0/0
noshu
intf0/0.1
encdo2
ipadd192.168.1.1255.255.255.0
intf0/0.2
encdo3
ipadd192.168.2.1255.255.255.0
exit
Switch:
confter
intrangef0/1-5
swaccvlan2
intrangef0/6-10
swaccvlan3
intf0/24
swmodetrunk
swtrunkallowedvlanall
exit
PC1:
PacketTracerPCCommandLine1.0
PC>ipconfig/all
FastEthernet0Connection:(defaultport)
PhysicalAddress................:0090.2B16.6C58
Link-localIPv6Address.........:FE80::290:2BFF:FE16:6C58
IPAddress......................:192.168.1.2
SubnetMask.....................:255.255.255.0
DefaultGateway.................:192.168.1.1
DNSServers.....................:1.1.1.1
DHCPServers....................:192.168.1.1
PC>ipconfig/release
IPAddress......................:0.0.0.0
SubnetMask.....................:0.0.0.0
DefaultGateway.................:0.0.0.0
DNSServer......................:0.0.0.0
PC>ipconfig/renew
IPAddress......................:192.168.1.2
SubnetMask.....................:255.255.255.0
DefaultGateway.................:192.168.1.1
DNSServer......................:1.1.1.1
PC>ping192.168.2.2
Pinging192.168.2.2with32bytesofdata:
Replyfrom192.168.2.2:bytes=32time=15msTTL=127
Replyfrom192.168.2.2:bytes=32time=0msTTL=127
Replyfrom192.168.2.2:bytes=32time=16msTTL=127
Replyfrom192.168.2.2:bytes=32time=15msTTL=127
Pingstatisticsfor192.168.2.2:
Packets:Sent=4,Received=4,Lost=0(0%loss),
Approximateroundtriptimesinmilli-seconds:
Minimum=0ms,Maximum=16ms,Average=11ms
PC2:
PacketTracerPCCommandLine1.0
PC>ipconfig/all
FastEthernet0Connection:(defaultport)
PhysicalAddress................:00D0.FF80.55E7
Link-localIPv6Address.........:FE80::2D0:FFFF:FE80:55E7
IPAddress......................:192.168.2.2
SubnetMask.....................:255.255.255.0
DefaultGateway.................:192.168.2.1
DNSServers.....................:1.1.1.1
DHCPServers....................:192.168.2.1
PC>ping192.168.1.2
Pinging192.168.1.2with32bytesofdata:
Requesttimedout.
Replyfrom192.168.1.2:bytes=32time=0msTTL=127
Replyfrom192.168.1.2:bytes=32time=30msTTL=127
Replyfrom192.168.1.2:bytes=32time=0msTTL=127
Pingstatisticsfor192.168.1.2:
Packets:Sent=4,Received=3,Lost=1(25%loss),
Approximateroundtriptimesinmilli-seconds:
Minimum=0ms,Maximum=30ms,Average=10ms
上一篇:单臂路由实现DHCP功能