Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Mar 2013 20:49:54 -0500 (EST)
From:      doug@safeport.com
To:        freebsd-questions@FreeBSD.ORG
Subject:   vlan routing
Message-ID:  <alpine.BSF.2.00.1303092036110.3582@oceanpt.safeport.com>

next in thread | raw e-mail | index | archive | help
I am trying set this up. First I munged the IP addresses. Not to worry if I hit 
yours. I did the following commands:

    ifconfig vlan0 create
    ifconfig vlan0 vlan 95 vlandev fxp0
    ifconfig vlan0 inet 134.217.128.117 netmask 255.255.255.0
    ifconfig fxp0 add 134.217.128.117 netmask 255.255.255.0
    route add -inet 134.217.128.117 134.217.128.1

ifconfig shows:

fxp0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
         options=8<VLAN_MTU>
         ether 00:d0:b7:56:cf:ab
         inet 45.22.17.3 netmask 0xfffffc00 broadcast 45.22.19.255
         inet 45.22.17.17 netmask 0xffffffff broadcast 45.22.17.17
         inet 134.217.128.117 netmask 0xffffff00 broadcast 134.217.128.255
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active
bge0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
         options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
         ether 00:09:5b:60:e4:1f
         media: Ethernet autoselect (none)
         status: no carrier
vlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
         ether 00:d0:b7:56:cf:ab
         inet 134.217.128.117 netmask 0xffffff00 broadcast 134.217.128.255
         media: Ethernet autoselect (100baseTX <full-duplex>)
         status: active
         vlan: 95 parent interface: fxp0

Needless to say it does not work. The switch is programmed correctly (I am 
told). My questions are (1) it seems like the option got applied to the wrong 
interface; (2) what did I miss??

I also tried booting the system with IP of 134.217.128.117 but I did not get the 
rc.conf macros correctly. I do know I can not route through the switch without 
going the vlan commands.

_____
Douglas Denault
http://www.safeport.com
doug@safeport.com
Voice: 301-217-9220
   Fax: 301-217-9277



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1303092036110.3582>