内容发布更新时间 : 2024/12/25 16:21:16星期一 下面是文章的全部内容请认真阅读。
1.创建主机名
HP ProCurve Switch 2650#
HP ProCurve Switch 2650# config t
HP ProCurve Switch 2650(config)# hostname sdn sdn(config)# sdn(config)#
2.创建VLAN
sdn(config)# vlan 2 ip add 192.168.20.1 255.255.255.0 sdn(config)#
3.配置默认网关
sdn(config)# ip default-gateway 192.168.20.1 sdn(config)# sdn(eth-1)#
vlan地址和默认网关地址需要配置成同一个地址,否则网络不同。
4.将交换机端口添加到VLAN2中
sdn(eth-1)# vlan 2 sdn(vlan-2)#
sdn(vlan-2)# untagged ethernet 1 sdn(vlan-2)# untagged ethernet 2 sdn(vlan-2)# untagged ethernet 3 sdn(vlan-2)# untagged ethernet 4 sdn(vlan-2)# untagged ethernet 5 sdn(vlan-2)# untagged ethernet 6 sdn(vlan-2)# untagged ethernet 7 sdn(vlan-2)# untagged ethernet 8 sdn(vlan-2)# untagged ethernet 9 sdn(vlan-2)# untagged ethernet 10
sdn(vlan-2)# untagged ethernet 11 sdn(vlan-2)# untagged ethernet 12 sdn(vlan-2)# untagged ethernet 13 sdn(vlan-2)# untagged ethernet 14 sdn(vlan-2)# untagged ethernet 15 sdn(vlan-2)# untagged ethernet 16 sdn(vlan-2)# untagged ethernet 17 sdn(vlan-2)# untagged ethernet 18 sdn(vlan-2)# untagged ethernet 19 sdn(vlan-2)# untagged ethernet 20
sdn#
sdn# show running-config
Running configuration:
; J4899B Configuration Editor; Created on release #H.08.54
hostname \
ip default-gateway 192.168.20.1
snmp-server community \ vlan 1
name \ untagged 21-50
ip address dhcp-bootp no untagged 1-20 exit vlan 2
name \ untagged 1-20
ip address 192.168.20.20 255.255.255.0 exit
sdn#
sdn# show vlan
Status and Counters - VLAN Information
Maximum VLANs to support : 8 Primary VLAN : DEFAULT_VLAN
Management VLAN :
802.1Q VLAN ID Name Status -------------- ------------ ----------
1 DEFAULT_VLAN 2 VLAN2
sdn# show vlan 2
Status and Counters - VLAN Information - Ports - VLAN 2
802.1Q VLAN ID : 2 Name : VLAN2 Status :
Port Information Mode Unknown VLAN Status ---------------- -------- ------------ ----------
1 Untagged Learn Up 2 Untagged Learn Down 3 Untagged Learn Down 4 Untagged Learn Down 5 Untagged Learn Down 6 Untagged Learn Down 7 Untagged Learn Down 8 Untagged Learn Down 9 Untagged Learn Down 10 Untagged Learn Down 11 Untagged Learn Down 12 Untagged Learn Down 13 Untagged Learn Down 14 Untagged Learn Down 15 Untagged Learn Down 16 Untagged Learn Down 17 Untagged Learn Down 18 Untagged Learn Down 19 Untagged Learn Down 20 Untagged Learn Down
sdn# sdn# sdn#