请教cisco的题目解答
楼主留个邮箱 我把做好的 Cisco Packet Tracer 文件给你
完整命令如下:直接复制粘贴到设备即可
3560:
en
config t
vtp domain hunter
vtp mode server
vlan 10
vlan 20
vlan 30
vlan 40
vlan 50
end
config t
interface vlan 10
ip add 172.16.1.1 255.255.255.224
no shut
interface vlan 20
ip add 172.16.1.33 255.255.255.224
no shut
interface vlan 30
ip add 172.16.1.65 255.255.255.224
no shut
interface vlan 40
ip add 172.16.1.97 255.255.255.224
no shut
interface vlan 50
ip add 172.16.1.129 255.255.255.224
no shut
end
config t
ip dhcp pool vlan10
network 172.16.1.0 255.255.255.224
default-router 172.16.1.1
dns-server 172.16.1.1
exit
ip dhcp pool vlan20
network 172.16.1.32 255.255.255.224
default-router 172.16.1.33
dns-server 172.16.1.33
exit
ip dhcp pool vlan30
network 172.16.1.64 255.255.255.224
default-router 172.16.1.65
dns-server 172.16.1.65
exit
ip dhcp pool vlan40
network 172.16.1.96 255.255.255.224
default-router 172.16.1.97
dns-server 172.16.1.97
exit
ip dhcp pool vlan50
network 172.16.1.128 255.255.255.224
default-router 172.16.1.129
dns-server 172.16.1.129
exit
ip dhcp excluded-address 172.16.1.1
ip dhcp excluded-address 172.16.1.33
ip dhcp excluded-address 172.16.1.65
ip dhcp excluded-address 172.16.1.97
ip dhcp excluded-address 172.16.1.129
end
config t
interface gigabitEthernet 0/1
switchport trunk encapsulation dot1q
switchport mode trun
end
2960:
en
config t
vtp domain hunter
vtp mode client
inter range fastEthernet 0/1-4
switchport mode access
switchport access vlan 10
exit
inter range fastEthernet 0/5-8
switchport mode access
switchport access vlan 20
exit
inter range fastEthernet 0/9-15
switchport mode access
switchport access vlan 30
exit
inter range fastEthernet 0/16-22
switchport mode access
switchport access vlan 40
exit
inter range fastEthernet 0/23-24
switchport mode access
switchport access vlan 50
exit
interface gigabitEthernet 1/1
switchport mode trun
end
其中DNS服务器地址按照实际更改。
子网划分:
子网 , 有效的主机 , 广播地址
172.16.1.0 , 172.16.1.1 到 172.16.1.30 , 172.16.1.31
172.16.1.32 , 172.16.1.33 到 172.16.1.62 , 172.16.1.63
172.16.1.64 , 172.16.1.65 到 172.16.1.94 , 172.16.1.95
172.16.1.96 , 172.16.1.97 到 172.16.1.126 , 172.16.1.127
172.16.1.128 , 172.16.1.129 到 172.16.1.158 , 172.16.1.159
172.16.1.160 , 172.16.1.161 到 172.16.1.190 , 172.16.1.191
172.16.1.192 , 172.16.1.193 到 172.16.1.222 , 172.16.1.223
172.16.1.224 , 172.16.1.225 到 172.16.1.254 , 172.16.1.255
子网掩码为:255.255.255.224