Network Simulator
1752800 Members
5727 Online
108789 Solutions
New Discussion

VLAN configuration

 
zied008
Occasional Contributor

VLAN configuration

hi,

could anyone help me to create VLAN`s for this diagram.

I need to ping any address from any switch.

please find attached my diagram

thanks

1 REPLY 1
javeedt
Occasional Visitor

Re: VLAN configuration

Hello.
Haven't worked much with HP switches recently, but you can try the below for a starter, until somebody else responds.I believe this is not a production network.


===================================================
SWITCH-HP-2920-24G
Assuming this is your core switch where you want to
do the routing, you need to add all vlans to this
L3 switch and give each vlan an IP. All NICs on
servers, clients and netowrk cameras will then use
these IPs as their default gateway.
Port 21 and 22 are used as a trunk VLAN 10
Port 23 and 24 are used as a trunk VLAN 20
===================================================
configure terminal
 ip routing
 spanning-tree
 spanning-tree priority 4
 interface 1
  name "connected-to-server"
  exit
 interface 21
  name "uplink-to-camera-switch-eth7"
  exit
 interface 22
  name "uplink-to-camera-switch-eth8"
  exit
 interface 23
  name "uplink-to-client-switch-eth23""
  exit
 interface24
  name "uplink-to-client-switch-eth24"
  exit

 vlan 1
  name "Servers"
  tagged 23,24
  untagged 1-20
  ip address 192.168.1.254 255.255.255.0
  exit

 vlan 10
  name "Camera"
  tagged 21,22
  ip address 192.168.10.254 255.255.255.0
  exit

 vlan 20
  name "LAN"
  tagged 23,24
  ip address 192.168.20.254 255.255.255.0
  exit

trunk ethernet 21,22 trk1 lacp
trunk ethernet 23,24 trk2 lacp

write memory

===================================================
SWITCH-HP-POE-2530
Assuming this is an 8 port switch, interfaces 7 and
8 are uplinked to interfaces 21 and 22 on the Core
===================================================
configure terminal
 spanning-tree

 interface 1
  name "connected-to-camera"
  exit

 interface 7
  name "trunked-to-Core-eth-21"
  exit

 interface 8
  name "trunked-to-Core-eth-22"
  exit

 vlan 10
  name "Camera"
  tagged 7,8
  untagged 1-6
  no ip address
  exit

 trunk ethernet 7,8 trk1 lacp
 exit

write memory

===================================================
SWITCH-HP-1920-24G
Interfaces 23 and 24 are uplinked to interfaces 23
and 24 on the Core
===================================================
configure terminal
 spanning-tree

 interface 1
  name "connected-to-laptop"
  exit

 interface 23
  name "trunked-to-Core-eth-23"
  exit

 interface 24
  name "trunked-to-Core-eth-24"
  exit

 vlan 20
  name "LAN"
  tagged 23,24
  untagged 1-21
  no ip address
  exit

 trunk ethernet 23,24 trk2 lacp
 exit

write memory

===================================================