2024年3月31日发(作者:薄世)
Hp9308三层交换机配置实例
Hp9308三层交换机配置实例
!
ver 07.8.00aT53
!
module 1 ep-8-port-gig-m4-management-module
module 2 ep-8-port-gig-m4-management-module
module 6 ep-16-port-gig-copper-module
!
!
trunk switch ethe 2/1 to 2/2
!
!
vlan 1 name DEFAULT-VLAN by port
router-interface ve 1
!
vlan 10 by port
untagged ethe 6/1
router-interface ve 10
!
vlan 11 by port
untagged ethe 6/2 to 6/5
router-interface ve 11
!
vlan 12 by port
tagged ethe 2/1 to 2/2
untagged ethe 6/12
router-interface ve 12
!
vlan 13 by port
tagged ethe 2/1 to 2/2
router-interface ve 13
!
vlan 14 by port
tagged ethe 2/1 to 2/2
router-interface ve 14
!
vlan 15 by port
tagged ethe 2/3
untagged ethe 6/15
router-interface ve 15
!
vlan 16 by port
tagged ethe 2/3
router-interface ve 16
!
vlan 17 by port
tagged ethe 2/3
router-interface ve 17
!
vlan 18 by port
tagged ethe 2/3
router-interface ve 18
!
vlan 19 by port
tagged ethe 2/3
router-interface ve 19
!
!
enable telnet password 8 $1$$jlPEM5bvx6JHc9Ilat5Hz/
enable super-user-password 8 $1$7c1..wR0$5ghkVCTOpi2GU6Qc/07b3/
ip route 0.0.0.0 0.0.0.0 192.168.1.1
!
snmp-server community 1 $bSDn?=dbng" rw
!
interface ethernet 2/1
dual-mode
!
interface ethernet 2/3
dual-mode
!
interface ve 1
ip address 10.0.0.254 255.255.255.0
!
interface ve 10
ip address 192.168.1.254 255.255.255.0
!
interface ve 11
ip address 172.16.11.254 255.255.255.0
!
interface ve 12
ip access-group 101 in
ip access-group 101 out
ip address 172.16.12.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 13
ip access-group 101 in
ip access-group 101 out
ip address 172.16.13.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 14
ip access-group 101 in
ip access-group 101 out
ip address 172.16.14.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 15
ip address 172.16.15.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 16
ip address 172.16.16.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 17
ip address 172.16.17.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 18
ip address 172.16.18.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 19
ip address 172.16.19.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
!
access-list 101 deny ip 172.16.15.0 0.0.0.255 172.16.12.0 0.0.0.255
access-list 101 deny ip 172.16.16.0 0.0.0.255 172.16.12.0 0.0.0.255
access-list 101 deny ip 172.16.17.0 0.0.0.255 172.16.12.0 0.0.0.255
access-list 101 deny ip 172.16.18.0 0.0.0.255 172.16.12.0 0.0.0.255
access-list 101 deny ip 172.16.19.0 0.0.0.255 172.16.12.0 0.0.0.255
access-list 101 deny ip 172.16.15.0 0.0.0.255 172.16.13.0 0.0.0.255
access-list 101 deny ip 172.16.16.0 0.0.0.255 172.16.13.0 0.0.0.255
access-list 101 deny ip 172.16.17.0 0.0.0.255 172.16.13.0 0.0.0.255
access-list 101 deny ip 172.16.18.0 0.0.0.255 172.16.13.0 0.0.0.255
access-list 101 deny ip 172.16.19.0 0.0.0.255 172.16.13.0 0.0.0.255
access-list 101 deny ip 172.16.15.0 0.0.0.255 172.16.14.0 0.0.0.255
access-list 101 deny ip 172.16.16.0 0.0.0.255 172.16.14.0 0.0.0.255
access-list 101 deny ip 172.16.17.0 0.0.0.255 172.16.14.0 0.0.0.255
access-list 101 deny ip 172.16.18.0 0.0.0.255 172.16.14.0 0.0.0.255
access-list 101 deny ip 172.16.19.0 0.0.0.255 172.16.14.0 0.0.0.255
access-list 101 permit ip any any
!
!
!
!
!
end
2024年3月31日发(作者:薄世)
Hp9308三层交换机配置实例
Hp9308三层交换机配置实例
!
ver 07.8.00aT53
!
module 1 ep-8-port-gig-m4-management-module
module 2 ep-8-port-gig-m4-management-module
module 6 ep-16-port-gig-copper-module
!
!
trunk switch ethe 2/1 to 2/2
!
!
vlan 1 name DEFAULT-VLAN by port
router-interface ve 1
!
vlan 10 by port
untagged ethe 6/1
router-interface ve 10
!
vlan 11 by port
untagged ethe 6/2 to 6/5
router-interface ve 11
!
vlan 12 by port
tagged ethe 2/1 to 2/2
untagged ethe 6/12
router-interface ve 12
!
vlan 13 by port
tagged ethe 2/1 to 2/2
router-interface ve 13
!
vlan 14 by port
tagged ethe 2/1 to 2/2
router-interface ve 14
!
vlan 15 by port
tagged ethe 2/3
untagged ethe 6/15
router-interface ve 15
!
vlan 16 by port
tagged ethe 2/3
router-interface ve 16
!
vlan 17 by port
tagged ethe 2/3
router-interface ve 17
!
vlan 18 by port
tagged ethe 2/3
router-interface ve 18
!
vlan 19 by port
tagged ethe 2/3
router-interface ve 19
!
!
enable telnet password 8 $1$$jlPEM5bvx6JHc9Ilat5Hz/
enable super-user-password 8 $1$7c1..wR0$5ghkVCTOpi2GU6Qc/07b3/
ip route 0.0.0.0 0.0.0.0 192.168.1.1
!
snmp-server community 1 $bSDn?=dbng" rw
!
interface ethernet 2/1
dual-mode
!
interface ethernet 2/3
dual-mode
!
interface ve 1
ip address 10.0.0.254 255.255.255.0
!
interface ve 10
ip address 192.168.1.254 255.255.255.0
!
interface ve 11
ip address 172.16.11.254 255.255.255.0
!
interface ve 12
ip access-group 101 in
ip access-group 101 out
ip address 172.16.12.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 13
ip access-group 101 in
ip access-group 101 out
ip address 172.16.13.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 14
ip access-group 101 in
ip access-group 101 out
ip address 172.16.14.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 15
ip address 172.16.15.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 16
ip address 172.16.16.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 17
ip address 172.16.17.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 18
ip address 172.16.18.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
interface ve 19
ip address 172.16.19.254 255.255.255.0
ip helper-address 1 172.16.11.100
!
!
access-list 101 deny ip 172.16.15.0 0.0.0.255 172.16.12.0 0.0.0.255
access-list 101 deny ip 172.16.16.0 0.0.0.255 172.16.12.0 0.0.0.255
access-list 101 deny ip 172.16.17.0 0.0.0.255 172.16.12.0 0.0.0.255
access-list 101 deny ip 172.16.18.0 0.0.0.255 172.16.12.0 0.0.0.255
access-list 101 deny ip 172.16.19.0 0.0.0.255 172.16.12.0 0.0.0.255
access-list 101 deny ip 172.16.15.0 0.0.0.255 172.16.13.0 0.0.0.255
access-list 101 deny ip 172.16.16.0 0.0.0.255 172.16.13.0 0.0.0.255
access-list 101 deny ip 172.16.17.0 0.0.0.255 172.16.13.0 0.0.0.255
access-list 101 deny ip 172.16.18.0 0.0.0.255 172.16.13.0 0.0.0.255
access-list 101 deny ip 172.16.19.0 0.0.0.255 172.16.13.0 0.0.0.255
access-list 101 deny ip 172.16.15.0 0.0.0.255 172.16.14.0 0.0.0.255
access-list 101 deny ip 172.16.16.0 0.0.0.255 172.16.14.0 0.0.0.255
access-list 101 deny ip 172.16.17.0 0.0.0.255 172.16.14.0 0.0.0.255
access-list 101 deny ip 172.16.18.0 0.0.0.255 172.16.14.0 0.0.0.255
access-list 101 deny ip 172.16.19.0 0.0.0.255 172.16.14.0 0.0.0.255
access-list 101 permit ip any any
!
!
!
!
!
end