cisco 三层交换机

发布时间:2020-07-01 23:43:05 作者:小小三郎1
来源:网络 阅读:604

cisco  三层交换机

PC8  vlan10  dhcp获取网段:192.168.10.0/24

pc9  vlan20 dhcp 获取网段:192.168.20.0/24

vlan 10 fd

vlan 20 it

1.二层交换机划分vlan

把端口加进vlan里面去

2.三层交换机配置vlan(和二层交换机一样)

Switch(config)#vlan 10
Switch(config-vlan)#name fd
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name  it
Switch(config-vlan)#exit
Switch(config)#

3.三层交换机配置dhcp

Switch(config)#ip  dhcp pool vlan10  #vlan10只是名字
Switch(dhcp-config)#network 192.168.10.0  255.255.255.0
Switch(dhcp-config)#dns-server 223.5.5.5
Switch(dhcp-config)#default-router  192.168.10.254
Switch(dhcp-config)#exit
Switch(config)#ip dhcp  excluded-address  192.168.10.254
 
Switch(config)#ip  dhcp pool vlan20  #vlan20只是名字
Switch(dhcp-config)#network 192.168.20.0  255.255.255.0
Switch(dhcp-config)#dns-server 223.5.5.5
Switch(dhcp-config)#default-router  192.168.20.254
Switch(dhcp-config)#exit
Switch(config)#ip dhcp  excluded-address  192.168.20.254

4.三层交换机配置vlan地址

Switch(config)#interface  vlan 10
Switch(config-if)#ip address  192.168.10.254  255.255.255.0
Switch(config-if)#no  shutdown
Switch(config-if)#
Switch(config-if)#exit
Switch(config)#interface  vlan 20
Switch(config-if)#ip address  192.168.20.254  255.255.255.0
Switch(config-if)#no shutdown


5.三层交换机开启路由功能

ip routing

6.二层叫交换机的上行接口划分为trunk模式

推荐阅读:
  1. cisco mds光纤交换机配置
  2. cisco交换机做限速

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

三层交换机 cis sco

上一篇:Rabbitmq集群

下一篇:WorkLight HTPP adapter介绍

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》