Skip to main content

tplogin.cn首页 > 新闻资讯 > 华为 >

华为路由器单臂路由和DHCP配置

2012-04-26 23:37 浏览:

路由器配置

 

  dis cur

  #

  version 5.20, Release 2207P14, Basic

  #

  sysname H3C

  #

  domain default enable system

  #

  dar p2p signature-file cfa0:/p2p_default.mtd

  #

  port-security enable

  #

  vlan 1

  #

  domain system

  access-limit disable

  state active

  idle-cut disable

  self-service-url disable

  #

  dhcp server ip-pool 1

  network 10.16.10.0 mask 255.255.255.0

  gateway-list 10.16.10.254

  #

  dhcp server ip-pool 2

  network 10.16.20.0 mask 255.255.255.0

  gateway-list 10.16.20.254

  #

  user-group system

  group-attribute allow-guest

  #

  local-user admin

  password cipher .]@USE=B,53Q=^Q`MAF4<1!!

  authorization-attribute level 3

  service-type telnet

  #

  interface Aux0

  async mode flow

  link-protocol ppp

  #

  interface Cellular0/0

  async mode protocol

  link-protocol ppp

  #

  interface NULL0

  #

  interface GigabitEthernet0/0

  port link-mode route

  ip address 192.168.1.1 255.255.255.0

  #

  interface GigabitEthernet0/1

  port link-mode route

  #

  interface GigabitEthernet0/1.1

  vlan-type dot1q vid 10

  ip address 10.16.10.254 255.255.255.0

  #

  interface GigabitEthernet0/1.2

  vlan-type dot1q vid 20

  ip address 10.16.20.254 255.255.255.0

  #

  interface GigabitEthernet0/1.3

  vlan-type dot1q vid 30

  ip address 10.16.30.254 255.255.255.0

  #

  dhcp server forbidden-ip 10.16.10.254

  dhcp server forbidden-ip 10.16.20.254

  #

  dhcp enable

  #

  load xml-configuration

  #

  user-interface con 0

  user-interface tty 13

  user-interface aux 0

  user-interface vty 0 4

  authentication-mode scheme

  #

  return

  [H3C]

  交换机配置

  dis cur

  #

  sysname H3C

  #

  loopback-detection enable

  #

  radius scheme system

  #

  domain system

  #

  vlan 1

  #

  vlan 10

  #

  vlan 20

  #

  vlan 30

  #

  interface Vlan-interface30

  ip address 10.16.30.1 255.255.255.0

  #

  interface Aux1/0/0

  #

  interface Ethernet1/0/1

  port access vlan 10

  loopback-detection enable

  #

  interface Ethernet1/0/2

  port access vlan 10

  loopback-detection enable

  #

  interface Ethernet1/0/3

  port access vlan 10

  loopback-detection enable

  #

  interface Ethernet1/0/4

  port access vlan 10

  loopback-detection enable

  #

  interface Ethernet1/0/5

  port access vlan 10

  loopback-detection enable

  #

  interface Ethernet1/0/6

  port access vlan 10

  loopback-detection enable

  #

  interface Ethernet1/0/7

  loopback-detection enable

  #

  interface Ethernet1/0/8

  loopback-detection enable

  #

  interface Ethernet1/0/9

  loopback-detection enable

  #

  interface Ethernet1/0/10

  loopback-detection enable

  #

  interface Ethernet1/0/11

  loopback-detection enable

  #

  interface Ethernet1/0/12

  loopback-detection enable

  #

  interface Ethernet1/0/13

  port access vlan 20

  loopback-detection enable

  #

  interface Ethernet1/0/14

  port access vlan 20

  loopback-detection enable

  #

  interface Ethernet1/0/15

  port access vlan 20

  loopback-detection enable

  #

  interface Ethernet1/0/16

  port access vlan 20

  loopback-detection enable

  #

  interface Ethernet1/0/17

  port access vlan 20

  loopback-detection enable

  #

  interface Ethernet1/0/18

  port access vlan 20

  loopback-detection enable

  #

  interface Ethernet1/0/19

  loopback-detection enable

  #

  interface Ethernet1/0/20

  loopback-detection enable

  #

  interface Ethernet1/0/21

  loopback-detection enable

  #

  interface Ethernet1/0/22

  loopback-detection enable

  #

  interface Ethernet1/0/23

  loopback-detection enable

  #

  interface Ethernet1/0/24

  loopback-detection enable

  #

  interface GigabitEthernet1/1/1

  port link-type trunk

  port trunk permit vlan all

  loopback-detection enable

  #

  interface GigabitEthernet1/1/2

  port link-type trunk

  port trunk permit vlan all

  shutdown

  loopback-detection enable

  #

  interface GigabitEthernet1/2/1

  loopback-detection enable

  #

  interface GigabitEthernet1/2/2

  shutdown

  loopback-detection enable

  #

  interface NULL0

  #

  management-vlan 30

  #

  ip route-static 0.0.0.0 0.0.0.0 10.16.30.254 preference 60

  #

  user-interface aux 0

  user-interface vty 0 

  #

  return

  pc自动获取ip

本文出自 “网络人生” 博客,请务必保留此出处http://webaoyou.blog.51cto.com/2522700/844

相关文章

华为路由器怎么防止WIFI被蹭网

2020-04-07 04:06:40    浏览: 0

【教程】家里的华为荣耀路由器管理页面打不开

2020-04-07 04:06:40    浏览: 0

华为ws5200路由器怎么设置上网

2020-04-07 04:06:40    浏览: 0

【图文教程】怎么用手机设置华为路由器

2020-04-07 04:06:40    浏览: 0

【图解】华为荣耀路由怎么设置

2020-04-07 04:06:40    浏览: 0