H3C交换机配置端口IP sub实例

H3C交换机配置端口IP sub实例
  H3C接口获取IP地址有以下方式:
  1,通过手工指定
  2,通过BOOTP分配得到IP地址
  3,通过DHCP分配得到IP地址
  一个接口只能有一个主IP地址,新配置的主IP地址将覆盖原来的主IP
  当接口被配置为通过BOOTP和DHCP获取IP后,该接口不能在分配从IP地址
  举例,同一VLAN中有个两个IP段,172.16.1.0和172.16.2.0
  sys
  [switch]interface vlan-interface 1
  [switch-vlan-interface1]ip address 172.16.1.1 255.255.255.0
  [switch-vlan-interface1]ip address 172.16.2.1 255.255.255.0 sub
  延伸阅读:H3C交换机简单配置案例
  这里使用的H3C交换机是H126A,仅仅只做了最基本的配置以满足使用。
  配置中可以通过display current-configura命令来显示当前使用的配置内容。
  # 配置VLAN 1
  system-view
  System View:return to User View with Ctrl+Z.
  [Sysname]vlan 1
  [Sysname-vlan1]quit
  [Sysname]management-vlan1
  [Sysname]interfaceVlan-interface 1
  [Sysname-Vlan-interface1]ip address 10.0.1.201 255.255.255.0
  # 显示VLAN 接口1 的相关信息。
2012年重庆高考作文  display ip interface Vlan-interface 1
  # 创建VLAN(H3C不支持cisco的VTP,所以只能添加静态VLAN)
  system-view
  System View:return to User View with Ctrl+Z.
  [H3C_TEST]vlan 99
  [H3C_TEST-vlan99]nameseicoffice
  [H3C_TEST-vlan99]quit
  # 把交换机的端端口划分到相应的Vlan中
  [H3C_TEST]interfaceethernet1/0/2//进入端口模式
铁钢砂
  [H3C_TEST-Ethernet1/0/2]portlink-type access //设置端口的`类型为access
  [H3C_TEST-Ethernet1/0/2]portaccess vlan 99//把当前端口划到vlan 99
  [H3C_TEST]vlan 99
  [H3C_TEST-vlan99]portethernet1/0/1 to ethernet1/0/24//把以及网端口1/0/1到1/0/24划到vlan99
一升车
  [H3C_TEST-vlan99]quit
  [H3C_TEST-GigabitEthernet1/2/1]porttrunk permit vlan 1 99 // {ID|All} 设置trunk端口允许通过的VLAN
  ------------------------------------
  # 配置本地用户
  system-view
  System View:return to User View with Ctrl+Z.
  [Sysname]local-userh3c
  New local useradded.
  [Sysname-luser-h3c]service-typetelnet level 3
  [Sysname-luser-h3c]passwordsimple h3c
  # 配置欢迎信息
  [H3C_TEST]headerlogin %Welcome to login h3c!%
  # 配置用户认证方式telnet(vty 0-4)
  [H3C_TEST]user-interfacevty 0 4
  [H3C_TEST-ui-vty0-4]authentication-modescheme
  [H3C_TEST-ui-vty0-4]protocolinbound telnet
  [H3C_TEST-ui-vty0-4]superauthentication-mode super-password
  [H3C_TEST-ui-vty0-4]quit
  [H3C_TEST]superpassword level 3 simple h3c //用户登陆后提升权限的密码
  # 配置Radius策略
  [H3C_TEST]radiusscheme radius1
  New Radius scheme
  [H3C_TEST-radius-radius1]primaryauthentication 10.0.1.253 1645
  [H3C_TEST-radius-radius1]primaryaccounting 10.0.1.253 1646
  [H3C_TEST-radius-radius1]secondaryauthentication 127.0.0.1 1645
  [H3C_TEST-radius-radius1]secondaryaccounting 127.0.0.1 1646
  [H3C_TEST-radius-radius1]timer5
  [H3C_TEST-radius-radius1]keyauthentication h3c行政执法体制
  [H3C_TEST-radius-radius1]keyaccounting h3c
学者灵芝  [H3C_TEST-radius-radius1]server-typeextended
  [H3C_TEST-radius-radius1]user-name-formatwithout-domain
  # 配置域
  [H3C_TEST]domainh3c
  [H3C_TEST-isp-h3c]authenticationradius-scheme radius1 local
  [H3C_TEST-isp-h3c]schemeradius-scheme radius1 local
  [H3C_TEST]domaindefault enable h3c
  # 配置在远程认证失败时,本地认证的key
  [H3C_TEST]local-servernas-ip 127.0.0.1 key h3c

本文发布于:2024-09-21 18:44:41,感谢您对本站的认可!

本文链接:https://www.17tex.com/xueshu/342898.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:配置   端口   IP地址   交换机   接口
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议