I have an Arista switch I'm trying to setup for learning. The router is a Netgate SG-3100 running pfSense 2.4.5.
I have two VLANs setup:
- VLAN 22 - for normal browsing. Using the 10.0.22.0/24 subnet
- VLAN 10 - management (e.g. iDRAC, switch OOB management etc.). This is Using the 10.0.10.0/24 subnet.
The switch has it's own dedicated out-of-band management port (management interface 1).
And there are of course the normal access ports on the switch.
I thought I'd take those ports, and divide them up between VLAN 10 and VLAN 22.
Port 1 is a trunk uplink port, with all VLANs allowed.
I connected a cable from the switch management port to one of the normal access ports (VLAN 10)
On the switch, I also configured a static IP for the management port, and also setup next hop (per this guide).
So I have:
interface Ethernet1
switchport mode trunk
!
interface Ethernet2
!
interface Ethernet3
switchport access vlan 10
....
interface Ethernet21
switchport access vlan 22
!
....
interface Management1
ip address 10.0.10.4/24
!
ip route 0.0.0.0/0 10.0.10.1
!
no ip routing
!
So the VLAN 10 ports are working fine - I can connect to them, and get a DHCP address, or use static addresses fine.
However, the VLAN 22 ports are not working - I was thinking this might be something to do with the ip route 0.0.0.0/0 10.0.10.1
- do I need to configure something else here to also allow 10.0.22.1/24?
UPDATE. To clarify, what I mean by VLAN 22 ports not working is - if I plug in a machine there, it will not get a DHCP lease, and if I put in the right IP address details manually, it isn't able to ping the gateway machine (10.0.22.1).
Here is the full config - https://gist.github.com/victorhooi/4145fbf03086a5fbcc9915f39c550d6e