一、进入Vlan50,配置ip地址:
<H3C>system-view
[H3C]interface vlan 50
[H3C-Vlan-interface50]ip address 10.91.50.254 255.255.255.0
[H3C]interface vlan 50
[H3C-Vlan-interface50]ip address 10.91.50.254 255.255.255.0
二、建立DHCP中继:设置vlan 50接口的DHCP-server为1
[H3C]dhcp-server 1 ip 10.91.50.5
[H3C]dhcp relay information enable
[H3C]interface vlan 50
[H3C-Vlan-interface10]dhcp-server 1
[H3C]dhcp relay information enable
[H3C]interface vlan 50
[H3C-Vlan-interface10]dhcp-server 1
三、设置交换机密码
[H3C]user-interface aux 0 7
[H3C-ui-aux0-7]user privilege level 3
[H3C-ui-aux0-7]set authentication password simple h3c
[H3C-ui-aux0-7]user privilege level 3
[H3C-ui-aux0-7]set authentication password simple h3c
[H3C]user-interface vty 0 4
[H3C-ui-vty0-4]user privilege level 3
[H3C-ui-vty0-4]set authentication password simple h3c
[H3C]display current-configuration
[H3C]save
[H3C-ui-vty0-4]user privilege level 3
[H3C-ui-vty0-4]set authentication password simple h3c
[H3C]display current-configuration
[H3C]save
四、配置网管登录:
[H3C] local-user admin(设置用户名为admin)
[H3C-luser-admin] service-type telnet level 3(设置级别3)
[H3C-luser-admin] password simple admin (设置密码admin)
[H3C-luser-admin] service-type telnet level 3(设置级别3)
[H3C-luser-admin] password simple admin (设置密码admin)
五、配置交换机上网,到router:
[H3C]ip route-static 0.0.0.0 0.0.0.0 10.91.50.253
六、两个Vlan的互访:
将Vlan50 和Vlan55所在的client的网关设置为交换机的网关(如Vlan50:10.91.50.254)即可ping通55段的网关(10.91.55.254)
相关文章
暂无评论...