求一下配置翻译成华三交换机配置
sw3750-2#show run
Building configuration...
Current configuration : 46872 bytes
!
version 12.2
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname sw3750-2
!
enable secret 5 $1$wkGE$ARMm4xoj70flZTW5AWA91.
enable password cisco
!
no aaa new-model
switch 1 provision ws-c3750g-12s
vtp domain cbrcqh
vtp mode transparent
ip subnet-zero
ip routing
ip dhcp excluded-address 192.168.1.250 192.168.1.254
ip dhcp excluded-address 192.168.103.1
ip dhcp excluded-address 192.168.102.1
ip dhcp excluded-address 192.168.104.1
ip dhcp excluded-address 192.168.101.1
ip dhcp excluded-address 192.168.108.1
ip dhcp excluded-address 192.168.109.1
ip dhcp excluded-address 192.168.110.1
ip dhcp excluded-address 192.168.106.1
ip dhcp excluded-address 192.168.107.1
ip dhcp excluded-address 192.168.105.1
ip dhcp excluded-address 192.168.111.1
!
ip dhcp pool g1_cmcc_spd
host 192.168.1.5 255.255.255.0
client-identifier 01e8.fcaf.a01c.c3
default-router 192.168.1.1
dns-server 192.168.1.1
!
ip dhcp pool g1_qing_wifi
host 192.168.1.6 255.255.255.0
client-identifier 01c0.6118.00ad.d3
default-router 192.168.1.1
dns-server 192.168.1.1
!
很多个ip dhcp pool XXXXX
!
ip dhcp pool f3_3loucaiwu2
host 192.168.103.89 255.255.255.0
client-identifier 0100.d861.944b.c1
default-router 192.168.103.1
dns-server 192.168.1.1
!
ip dhcp snooping vlan 3
ip dhcp snooping
ip arp inspection vlan 3
ip arp inspection validate src-mac ip
!
!
!
!
!
errdisable recovery cause udld
errdisable recovery cause bpduguard
errdisable recovery cause security-violation
errdisable recovery cause channel-misconfig
errdisable recovery cause pagp-flap
errdisable recovery cause dtp-flap
errdisable recovery cause link-flap
errdisable recovery cause gbic-invalid
errdisable recovery cause l2ptguard
errdisable recovery cause psecure-violation
errdisable recovery cause dhcp-rate-limit
errdisable recovery cause unicast-flood
errdisable recovery cause vmps
errdisable recovery cause storm-control
errdisable recovery cause arp-inspection
errdisable recovery cause loopback
errdisable recovery interval 30
no file verify auto
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
vlan 2
name internet-pub
!
vlan 3
private-vlan primary
private-vlan association 301-302
!
vlan 101
name 1F
!
vlan 102
name 2F
!
vlan 103
name 3F
!
vlan 104
name 4F
!
vlan 105
name 5F
!
vlan 106
name 6F
!
vlan 107
name 7F
!
vlan 108
name 8F
!
vlan 109
name 9F
!
vlan 110
name 10F
!
vlan 111
name 11F
!
vlan 301
private-vlan isolated
!
vlan 302
private-vlan community
!
vlan 999
name GuanLi
!
!
interface GigabitEthernet1/0/1
switchport trunk encapsulation dot1q
switchport mode trunk
ip arp inspection limit rate 300
ip access-group limit in
ip dhcp snooping limit rate 300
ip dhcp snooping trust
!
interface GigabitEthernet1/0/2
switchport trunk encapsulation dot1q
switchport mode trunk
ip arp inspection limit rate 300
ip access-group limit in
ip dhcp snooping limit rate 300
ip dhcp snooping trust
!
interface GigabitEthernet1/0/3
switchport trunk encapsulation dot1q
switchport mode trunk
ip access-group limit in
ip dhcp snooping limit rate 300
ip dhcp snooping trust
!
interface GigabitEthernet1/0/4
switchport trunk encapsulation dot1q
switchport mode trunk
ip arp inspection limit rate 300
ip access-group limit in
ip dhcp snooping limit rate 300
ip dhcp snooping trust
!
interface GigabitEthernet1/0/5
switchport trunk encapsulation dot1q
switchport mode trunk
ip arp inspection limit rate 300
ip access-group limit in
ip dhcp snooping limit rate 300
ip dhcp snooping trust
!
interface GigabitEthernet1/0/6
switchport trunk encapsulation dot1q
switchport mode trunk
ip arp inspection limit rate 300
ip access-group limit in
ip dhcp snooping limit rate 300
ip dhcp snooping trust
!
interface GigabitEthernet1/0/7
switchport trunk encapsulation dot1q
switchport mode trunk
ip arp inspection limit rate 300
ip access-group limit in
ip dhcp snooping limit rate 300
ip dhcp snooping trust
!
interface GigabitEthernet1/0/8
switchport trunk encapsulation dot1q
switchport mode trunk
ip arp inspection limit rate 300
ip access-group limit in
ip dhcp snooping limit rate 300
ip dhcp snooping trust
!
interface GigabitEthernet1/0/9
switchport trunk encapsulation dot1q
switchport mode trunk
ip arp inspection limit rate 300
ip access-group limit in
ip dhcp snooping limit rate 300
ip dhcp snooping trust
!
interface GigabitEthernet1/0/10
switchport trunk encapsulation dot1q
switchport mode trunk
ip arp inspection limit rate 300
ip access-group limit in
ip dhcp snooping limit rate 300
ip dhcp snooping trust
!
interface GigabitEthernet1/0/11
switchport trunk encapsulation dot1q
switchport mode trunk
ip arp inspection limit rate 300
ip access-group limit in
ip dhcp snooping limit rate 300
!
interface GigabitEthernet1/0/12
switchport mode dynamic desirable
ip arp inspection trust
ip access-group limit in
ip dhcp snooping trust
!
interface Vlan1
ip address 192.168.0.22 255.255.255.0
!
interface Vlan3
ip address 192.168.1.251 255.255.255.0
private-vlan mapping 301-302
!
interface Vlan101
description 1F
ip address 192.168.101.1 255.255.255.0
!
interface Vlan102
description 2F
ip address 192.168.102.1 255.255.255.0
!
interface Vlan103
description 3L
ip address 192.168.103.1 255.255.255.0
!
interface Vlan104
description 4F
ip address 192.168.104.1 255.255.255.0
!
interface Vlan105
description 5F
ip address 192.168.105.1 255.255.255.0
!
interface Vlan106
description 6F
ip address 192.168.106.1 255.255.255.0
!
interface Vlan107
description 7F
ip address 192.168.107.1 255.255.255.0
!
interface Vlan108
description 8F
ip address 192.168.108.1 255.255.255.0
!
interface Vlan109
description 9F
ip address 192.168.109.1 255.255.255.0
!
interface Vlan110
description 10F
ip address 192.168.110.1 255.255.255.0
!
interface Vlan111
description 11F
ip address 192.168.111.1 255.255.255.0
!
interface Vlan999
description GuanLi
ip address 172.16.1.254 255.255.255.0
!
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.1.1
ip http server
ip http secure-server
!
!
!
arp access-list exit
!
control-plane
!
!
line con 0
line vty 0 4
password tjxxc
login
line vty 5 15
no login
!
!
end
接口下配置怎么翻译,还有那个dhcp
ip arp inspection(DAI) ≈ H3C arp detection;Cisco dhcp snooping 和 H3C dhcp snooping 逻辑一致errdisable recovery:H3C 没有一条统一命令,部分故障类型自动恢复需要单独配置,不是所有 errdisable 原因都支持自动恢复client-identifier 格式:01e8.fcaf.a01c.c3,H3C 识别格式 e8-fcaf-a01c-c3,前面 01 是以太网类型标记,H3C 写的时候去掉 01下面是完整 H3C V7 版本配置(S5560/S6850/S7003X 等主流 V7 平台)
system-view
sysname sw3750-2
# 关闭不需要的,H3C默认没有service pad这类
# 密码配置
super password simple cisco
# 开启IP路由
ip routing
# DHCP全局开启
dhcp enable
# DHCP排除地址
dhcp server forbidden-ip 192.168.1.250 192.168.1.254
dhcp server forbidden-ip 192.168.103.1
dhcp server forbidden-ip 192.168.102.1
dhcp server forbidden-ip 192.168.104.1
dhcp server forbidden-ip 192.168.101.1
dhcp server forbidden-ip 192.168.108.1
dhcp server forbidden-ip 192.168.109.1
dhcp server forbidden-ip 192.168.110.1
dhcp server forbidden-ip 192.168.106.1
dhcp server forbidden-ip 192.168.107.1
dhcp server forbidden-ip 192.168.105.1
dhcp server forbidden-ip 192.168.111.1
# DHCP静态绑定示例(多个pool以此类推)
dhcp server ip-pool g1_cmcc_spd
static-bind ip-address 192.168.1.5 mask 255.255.255.0
static-bind client-identifier e8-fcaf-a01c-c3
gateway-list 192.168.1.1
dns-list 192.168.1.1
quit
dhcp server ip-pool g1_qing_wifi
static-bind ip-address 192.168.1.6 mask 255.255.255.0
static-bind client-identifier c0-6118-00ad-d3
gateway-list 192.168.1.1
dns-list 192.168.1.1
quit
dhcp server ip-pool f3_3loucaiwu2
static-bind ip-address 192.168.103.89 mask 255.255.255.0
static-bind client-identifier 00-d861-944b-c1
gateway-list 192.168.103.1
dns-list 192.168.1.1
quit
# DHCP Snooping + ARP Detection(对应Cisco ip dhcp snooping + ip arp inspection)
dhcp snooping enable
vlan 3
dhcp snooping enable
arp detection enable
arp detection validate src-mac ip
quit
# STP 等价替换:Cisco spanning-tree mode pvst,H3C用MSTP(推荐)
stp mode mstp
stp enable
# VLAN配置 + PVLAN
vlan 2
name internet-pub
quit
vlan 3
name pvlan-primary
private-vlan primary
private-vlan secondary 301 to 302
quit
vlan 101
name 1F
quit
vlan 102
name 2F
quit
vlan 103
name 3F
quit
vlan 104
name 4F
quit
vlan 105
name 5F
quit
vlan 106
name 6F
quit
vlan 107
name 7F
quit
vlan 108
name 8F
quit
vlan 109
name 9F
quit
vlan 110
name 10F
quit
vlan 111
name 11F
quit
vlan 301
private-vlan isolated
quit
vlan 302
private-vlan community
quit
vlan 999
name GuanLi
quit
# 接口G1/0/1 ~ G1/0/11 Trunk、dhcp snooping trust
interface GigabitEthernet1/0/1
port link-mode bridge
port link-type trunk
port trunk permit vlan all
dhcp snooping trust
dhcp snooping rate-limit 300
arp detection rate-limit 300
packet-filter apply limit inbound
quit
interface GigabitEthernet1/0/2
port link-mode bridge
port link-type trunk
port trunk permit vlan all
dhcp snooping trust
dhcp snooping rate-limit 300
arp detection rate-limit 300
packet-filter apply limit inbound
quit
interface GigabitEthernet1/0/3
port link-mode bridge
port link-type trunk
port trunk permit vlan all
dhcp snooping trust
dhcp snooping rate-limit 300
packet-filter apply limit inbound
quit
interface GigabitEthernet1/0/4
port link-mode bridge
port link-type trunk
port trunk permit vlan all
dhcp snooping trust
dhcp snooping rate-limit 300
arp detection rate-limit 300
packet-filter apply limit inbound
quit
interface GigabitEthernet1/0/5
port link-mode bridge
port link-type trunk
port trunk permit vlan all
dhcp snooping trust
dhcp snooping rate-limit 300
arp detection rate-limit 300
packet-filter apply limit inbound
quit
interface GigabitEthernet1/0/6
port link-mode bridge
port link-type trunk
port trunk permit vlan all
dhcp snooping trust
dhcp snooping rate-limit 300
arp detection rate-limit 300
packet-filter apply limit inbound
quit
interface GigabitEthernet1/0/7
port link-mode bridge
port link-type trunk
port trunk permit vlan all
dhcp snooping trust
dhcp snooping rate-limit 300
arp detection rate-limit 300
packet-filter apply limit inbound
quit
interface GigabitEthernet1/0/8
port link-mode bridge
port link-type trunk
port trunk permit vlan all
dhcp snooping trust
dhcp snooping rate-limit 300
arp detection rate-limit 300
packet-filter apply limit inbound
quit
interface GigabitEthernet1/0/9
port link-mode bridge
port link-type trunk
port trunk permit vlan all
dhcp snooping trust
dhcp snooping rate-limit 300
arp detection rate-limit 300
packet-filter apply limit inbound
quit
interface GigabitEthernet1/0/10
port link-mode bridge
port link-type trunk
port trunk permit vlan all
dhcp snooping trust
dhcp snooping rate-limit 300
arp detection rate-limit 300
packet-filter apply limit inbound
quit
interface GigabitEthernet1/0/11
port link-mode bridge
port link-type trunk
port trunk permit vlan all
dhcp snooping rate-limit 300
packet-filter apply limit inbound
quit
# G1/0/12 原Cisco dynamic desirable,H3C无DTP,手动trunk + arp detection trust
interface GigabitEthernet1/0/12
port link-mode bridge
port link-type trunk
port trunk permit vlan all
dhcp snooping trust
arp detection trust
packet-filter apply limit inbound
quit
# VLANIF三层接口
interface Vlan-interface1
ip address 192.168.0.22 255.255.255.0
quit
interface Vlan-interface3
ip address 192.168.1.251 255.255.255.0
private-vlan 3
quit
interface Vlan-interface101
description 1F
ip address 192.168.101.1 255.255.255.0
quit
interface Vlan-interface102
description 2F
ip address 192.168.102.1 255.255.255.0
quit
interface Vlan-interface103
description 3L
ip address 192.168.103.1 255.255.255.0
quit
interface Vlan-interface104
description 4F
ip address 192.168.104.1 255.255.255.0
quit
interface Vlan-interface105
description 5F
ip address 192.168.105.1 255.255.255.0
quit
interface Vlan-interface106
description 6F
ip address 192.168.106.1 255.255.255.0
quit
interface Vlan-interface107
description 7F
ip address 192.168.107.1 255.255.255.0
quit
interface Vlan-interface108
description 8F
ip address 192.168.108.1 255.255.255.0
quit
interface Vlan-interface109
description 9F
ip address 192.168.109.1 255.255.255.0
quit
interface Vlan-interface110
description 10F
ip address 192.168.110.1 255.255.255.0
quit
interface Vlan-interface111
description 11F
ip address 192.168.111.1 255.255.255.0
quit
interface Vlan-interface999
description GuanLi
ip address 172.16.1.254 255.255.255.0
quit
# 默认路由
ip route-static 0.0.0.0 0.0.0.0 192.168.1.1
# Web管理(等价ip http server / ip http secure-server)
ip http enable
ip https enable
# ACL:Cisco ip access-group limit in,H3C是packet-filter,需要你单独定义acl name limit
acl advanced name limit
# 这里按你原有思科limit ACL规则补齐
quit
# 线路vty登录
line vty 0 15
password simple tjxxc
authentication-mode password
quit
# 原思科vty5-15 no login,H3C vty统一,不需要单独关闭,上面这条就是全部vty用密码登录
# 补充:errdisable自动恢复【重点】
# H3C不能像思科一条命令全部开启,下面是常用错误down自动恢复,30秒
shutdown-interval storm-control 30
shutdown-interval bpdu-protection 30
shutdown-interval link-flap 30
01e8.fcaf.a01c.c3,01是以太网类型标记,H3C 写的时候去掉01,写成e8-fcaf-a01c-c3,否则绑定失败port private-vlan trunk promiscuousarp access-list exit没有实际匹配,H3C 可以直接删掉ip classless 在 H3C 不需要,默认开启vtp mode transparent H3C 不存在 VTP,直接忽略
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
接口下配置怎么翻译,还有那个dhcp