basic question: how to supply static IP address to specific port

  • 1
  • 1
  • Question
  • Updated 7 months ago
  • Answered
  • (Edited)
I am trying to provide an IP address to port 3 on my x440.  I am used to cisco switches where I can int f0/0 ip xxx, but extreme switches are different.  

My security camera company wants an IP address on a specific port, but I'm having difficulties doing so.  

Any help would be greatly appreciated.  I tried the instructions from https://gtacknowledge.extremenetworks.com/articles/How_To/How-to-enable-inter-VLAN-routing-in-EXOS but when I configure my laptop to have that IP address, I can't connect to the internet. 

For example, if firewall IP is 192.168.1.1, switch is 192.168.1.4, I would like port 3 designated to port 192.168.1.10.  

Thank you. 
Photo of Joe Ang

Joe Ang

  • 140 Points 100 badge 2x thumb

Posted 8 months ago

  • 1
  • 1
Photo of Patrick Voss

Patrick Voss, Alum

  • 11,574 Points 10k badge 2x thumb
Hello Joe,

EXOS primarily works with VLANs. You can create a VLAN and apply the 192.168.1.4 ip and add port 3. Designating the 192168.1.10 to the port would mean applying the device connected to port 3 that IP address.

Can you elaborate a little more on your setup and how you tested this with your laptop?
Photo of Joe Ang

Joe Ang

  • 140 Points 100 badge 2x thumb
here's what I did: 

Connect LAN on my Pfsense to port 1.  

create vlan securitycameras
configure vlan securitycameras ipaddress 192.168.1.4/29
configure vlan securitycameras add ports 3-5 untagged
enable ipforwarding vlan securitycameras

On my Laptop, I set IPv4 to 192.168.1.5, subnet mask 255.255.255.248, default gateway 192.168.1.4, dns 8.8.8.8, 

I then plugged in my laptop to port 3 and tried to ping google or 8.8.8.8, but had no success. 
(Edited)
Photo of Nick Yakimenko

Nick Yakimenko

  • 2,404 Points 2k badge 2x thumb
Are you able to ping 8.8.8.8 from your extreme?
Why don't you add port 1 to vlan securitycameras and set ip from pfsence's pool?
Photo of Joe Ang

Joe Ang

  • 140 Points 100 badge 2x thumb
port 1 is with default for now. I haven't tried that.  I don't remember if I'm able to ping my firewall, it may be an issue with my firewall and NAT. 
Photo of Patrick Voss

Patrick Voss, Alum

  • 11,574 Points 10k badge 2x thumb
What is the default route for the switch? My guess is the switch is receiving internet traffic and not sure where to send it even though it is the gateway for your computer. Can you try extending the VLAN up to the firewall and changing the default gateway on the pc to the firewall IP address. Either that or add a default route to your router on the switch.
Photo of Nick Yakimenko

Nick Yakimenko

  • 2,404 Points 2k badge 2x thumb
my guess is that pfsence's subnet is /24 but in vlan securitycameras a subnet /29 is used. So pfsense tries to send traffic directly within its /24, not via x440
Photo of Patrick Voss

Patrick Voss, Alum

  • 11,574 Points 10k badge 2x thumb
The laptop default gateway shows the switch ip for security cameras.
Photo of Nick Yakimenko

Nick Yakimenko

  • 2,404 Points 2k badge 2x thumb
well, did you make it done?