如题,一台24口的交换机划分5个VLAN,每个VLAN分配4个接口,24口连接路由器,这些VLAN下的接口如何自动获取路由器IP地址上网。求配置
(0)
最佳答案
你都是什么型号的设备?配置思路
在路由器上创建5个vlan 和交换机连接的口配置成trunk ,允许这5个vlan 通过,交换机24口也配置trunk 。路由器上配置好dhcp ,开启dhcp 就能获取地址了
(0)
radius scheme system # domain system # vlan 1 # vlan 100 to 200 # interface Aux1/0/0 # interface Ethernet1/0/1 port access vlan 100 # interface Ethernet1/0/2 port access vlan 100 # interface Ethernet1/0/3 port access vlan 100 # interface Ethernet1/0/4 port access vlan 100 # interface Ethernet1/0/5 # interface Ethernet1/0/6 # interface Ethernet1/0/7 # interface Ethernet1/0/8 # interface Ethernet1/0/9 # interface Ethernet1/0/10 port access vlan 200 # interface Ethernet1/0/11 port access vlan 200 # interface Ethernet1/0/12 port access vlan 200 # interface Ethernet1/0/13 port access vlan 200 # interface Ethernet1/0/14 port access vlan 200 # interface Ethernet1/0/15 # interface Ethernet1/0/16 # interface Ethernet1/0/17 # interface Ethernet1/0/18 # interface Ethernet1/0/19 # interface Ethernet1/0/20 # interface Ethernet1/0/21 # interface Ethernet1/0/22 # interface Ethernet1/0/23 # interface Ethernet1/0/24 # interface GigabitEthernet1/1/1 port link-type trunk port trunk permit vlan 1 100 to 200 # interface GigabitEthernet1/1/2 # interface GigabitEthernet1/1/3 # interface GigabitEthernet1/1/4 # undo irf-fabric authentication-mode # interface NULL0 # voice vlan mac-address 0001-e300-0000 mask ffff-ff00-0000 # user-interface aux 0 7 user-interface vty 0 4 # return 这样,路由器是软路由开好了DHCP,vlan100和200下的接口无法获取IP地址上网,交换机还要配置些是么
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明