温馨提示×

温馨提示×

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

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

第十一期 小型企业自动分配IP地址和不同网段通信

发布时间:2020-06-10 12:59:42 来源:网络 阅读:692 作者:王新宇1997 栏目:网络管理

实验目的:
1.DHCP自动分配地址
2.Vlan间通信
实验步骤:

  1. 在两台二层交换机上创建vlan【sw1vlan10 sw2vlan20】并将三个端口加入相应的vlan中
    [sw1]vlan 10
    [sw1-vlan10]q
    [sw1-GigabitEthernet0/0/1]undo sh
    Info: Interface GigabitEthernet0/0/1 is not shutdown.
    [sw1-Ethernet0/0/1]port link-type acc//选择access模式
    [sw1-Ethernet0/0/1]port def vlan 10 //加入vlan10
    其他端口同理【sw2上只是把vlan10换成vlan20】
  2. 配置三层交换机:
    创建vlan10、2
    将vlan10/20加入端口【access模式】
    配置vlanIP:
    [dhcp-Vlanif10]undo sh
    Info: Interface Vlanif10 is not shutdown.
    [dhcp-Vlanif10]
    [dhcp-Vlanif10]
    [dhcp-Vlanif10]ip add 192.168.10.254 255.255.255.0
    [dhcp-Vlanif20]ip add 192.168.20.254 255.255.255.0
    创建地址池:
    [dhcp]ip pool vlan-10
    Info:It's successful to create an IP address pool.
    [dhcp-ip-pool-vlan-10]network 192.168.10.0 mask 255.255.255.0
    [dhcp-ip-pool-vlan-10]gateway-list 192.168.10.254
    [dhcp]ip pool vlan-20
    Info:It's successful to create an IP address pool.
    [dhcp-ip-pool-vlan-20]network 192.168.20.0 mask 255.255.255.0
    [dhcp-ip-pool-vlan-20]gateway-list 192.168.20.254
    开启DHCP功能,端口开启DHCP全局:
    [dhcp]dhcp enable
    Info: The operation may take a few seconds. Please wait for a moment.done.
    [dhcp-Vlanif10]dhcp select global
    [dhcp-Vlanif20]dhcp select global
    配置完成
    3.验证、测试、保存
    第十一期 小型企业自动分配IP地址和不同网段通信
    实验拓扑图:
    第十一期 小型企业自动分配IP地址和不同网段通信
向AI问一下细节

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

AI