思科模拟器能实现这样的vlan划分及dhcp地址划分吗?
答案:1 悬赏:50 手机版
解决时间 2021-11-12 05:10
- 提问者网友:最爱你的唇
- 2021-11-11 12:33
思科模拟器能实现这样的vlan划分及dhcp地址划分吗?
最佳答案
- 五星知识达人网友:行路难
- 2021-11-11 12:38
你好!
实现的需求不高。
配置命令如下,可以直接覆复制到命令上去:
假设:
信管:vlan 10,为192.168.41.0
化工:vlan 11,为192.168.42.0
机电:vlan 12,为192.168.43.0
行政:vlan 13,为192.168.44.0
假设,3560的fa0/1连接switch3的fa0/24,fa0/2连接switch4的fa0/24
假设,switch3fa0/1连接信管,fa0/2连接化工,switch4的fa0/1连接机电,fa0/2
连接行政
那么:
3560
enable
vlan database
vlan 10
vlan 11
vlan 12
vlan 13
exit
configure terminal
int vlan 10
ip address 192.168.41.1 255.255.255.0
int vlan 11
ip address 192.168.42.1 255.255.255.0
int vlan 12
ip address 192.168.43.1 255.255.255.0
int vlan 13
ip address 192.168.44.1 255.255.255.0
exit
ip dhcp pool vlan10
network 192.168.41.0 255.255.255.0
default-router 192.168.41.1
dns-server 10.10.10.10
exit
ip dhcp pool vlan11
network 192.168.42.0 255.255.255.0
default-router 192.168.42.1
dns-server 10.10.10.10
exit
ip dhcp pool vlan12
network 192.168.43.0 255.255.255.0
default-rotuer 192.168.43.1
dns-server 10.10.10.10
exit
ip dhcp pool vlan13
network 192.168.44.0 255.255.255.0
default-router 192.168.44.1
dns-server 10.10.10.10
exit
ip dhcp e 192.168.41.1
ip dhcp e 192.168.42.1
ip dhcp e 192.168.43.1
ip dhcp e 192.l68.44.1
exit
int range fa0/1 -2
switchport trunk encapsulation dot1q
switchport mode trunk
end
show ip route
switch3
enable
vlan database
vlan 10
vlan 11
exit
configure terminal
int fa0/1
switchport mode access
switchport access vlan 10
int fa0/2
switchport mode access
switchport access vlan 11
exit
switch4
enable
vlan database
vlan 12
vlan 13
exit
configure terminal
int fa0/1
switchport mode access
switchport access vlan 12
int fa0/2
switchport mode access
switchport access vlan 13
exit
满意采纳!
实现的需求不高。
配置命令如下,可以直接覆复制到命令上去:
假设:
信管:vlan 10,为192.168.41.0
化工:vlan 11,为192.168.42.0
机电:vlan 12,为192.168.43.0
行政:vlan 13,为192.168.44.0
假设,3560的fa0/1连接switch3的fa0/24,fa0/2连接switch4的fa0/24
假设,switch3fa0/1连接信管,fa0/2连接化工,switch4的fa0/1连接机电,fa0/2
连接行政
那么:
3560
enable
vlan database
vlan 10
vlan 11
vlan 12
vlan 13
exit
configure terminal
int vlan 10
ip address 192.168.41.1 255.255.255.0
int vlan 11
ip address 192.168.42.1 255.255.255.0
int vlan 12
ip address 192.168.43.1 255.255.255.0
int vlan 13
ip address 192.168.44.1 255.255.255.0
exit
ip dhcp pool vlan10
network 192.168.41.0 255.255.255.0
default-router 192.168.41.1
dns-server 10.10.10.10
exit
ip dhcp pool vlan11
network 192.168.42.0 255.255.255.0
default-router 192.168.42.1
dns-server 10.10.10.10
exit
ip dhcp pool vlan12
network 192.168.43.0 255.255.255.0
default-rotuer 192.168.43.1
dns-server 10.10.10.10
exit
ip dhcp pool vlan13
network 192.168.44.0 255.255.255.0
default-router 192.168.44.1
dns-server 10.10.10.10
exit
ip dhcp e 192.168.41.1
ip dhcp e 192.168.42.1
ip dhcp e 192.168.43.1
ip dhcp e 192.l68.44.1
exit
int range fa0/1 -2
switchport trunk encapsulation dot1q
switchport mode trunk
end
show ip route
switch3
enable
vlan database
vlan 10
vlan 11
exit
configure terminal
int fa0/1
switchport mode access
switchport access vlan 10
int fa0/2
switchport mode access
switchport access vlan 11
exit
switch4
enable
vlan database
vlan 12
vlan 13
exit
configure terminal
int fa0/1
switchport mode access
switchport access vlan 12
int fa0/2
switchport mode access
switchport access vlan 13
exit
满意采纳!
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯