Re: "ifconfig -vlandev" syntax

From: Bernd Walter (ticso_at_cicely12.cicely.de)
Date: 09/28/05

  • Next message: Yar Tikhiy: "Re: "ifconfig -vlandev" syntax"
    Date: Wed, 28 Sep 2005 12:57:42 +0200
    To: Yar Tikhiy <yar@comp.chem.msu.su>
    
    

    On Wed, Sep 28, 2005 at 02:32:41PM +0400, Yar Tikhiy wrote:
    > On Mon, Sep 26, 2005 at 12:54:33AM +0200, Bernd Walter wrote:
    > > On Sun, Sep 25, 2005 at 11:08:25PM +0100, Gavin Atkinson wrote:
    > > >
    > > > Also, you can't set both the vlan and IP address information:
    > > > leeloo# ifconfig vlan14 vlan 14 vlandev fxp0 inet W.X.Y.Z netmask 255.255.255.0
    > > > ifconfig: inet: bad value
    > > >
    > > > As a result of this, the only way to create vlans from rc.conf seems to
    > > > be in two stages, by renaming the interface:
    > > >
    > > > cloned_interfaces="vlan14"
    > > > ifconfig_vlan14="vlan 14 vlandev fxp0 name somename"
    > > > ifconfig_somename="inet W.X.Y.Z netmask 255.255.255.0"
    > >
    > > The follwing always worked for me, no need to rename:
    > > cloned_interfaces="vlan1"
    > > ifconfig_vlan1="inet 1.2.3.4/29 vlan 1 vlandev fxp0"
    >
    > Indeed, the address assignment arguments should precede other
    > parameters to ifconfig(8). I think this is evident from the syntax
    > shown on the manpage.
    >
    > > What doesn't work is this:
    > > ifconfig_vlan1_alias0="1.2.3.4/32"
    > > I had to configure them by a selfdone script.
    >
    > Adding aliases on vlanX this way has been working for me. Could
    > you check if prepending the "inet" keyword before the address changes
    > anything? I prefer to specify address family explicitly in my
    > rc.conf files. E.g.:
    >
    > ifconfig_vlan1_alias0="inet 1.2.3.4/32"

    Sorry, but the configuration is used on a production machine that
    I can't do tests on.

    -- 
    B.Walter                   BWCT                http://www.bwct.de
    bernd@bwct.de                                  info@bwct.de
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
    

  • Next message: Yar Tikhiy: "Re: "ifconfig -vlandev" syntax"

    Relevant Pages

    • Re: "ifconfig -vlandev" syntax
      ... the address assignment arguments should precede other ... I think this is evident from the syntax ... > shown on the manpage. ...
      (freebsd-current)
    • Re: modernization of FORTH, Age Results
      ... It seems bizarre for the method to precede the object. ... changed so that it automatically recognized words ... object syntax pervades all of Win32Forth. ... Win32Forth applications, a large number of which use it extensively. ...
      (comp.lang.forth)
    • Re: "ifconfig -vlandev" syntax
      ... the address assignment arguments should precede other ... >> shown on the manpage. ... >> Adding aliases on vlanX this way has been working for me. ...
      (freebsd-current)
    • Re: "ifconfig -vlandev" syntax
      ... the address assignment arguments should precede other ... >> shown on the manpage. ... >> Adding aliases on vlanX this way has been working for me. ...
      (freebsd-net)
    • Re: Will this work? fdisk/mbr -- follow up
      ... >didn't properly read the manpage eh? ... I read all the way through the alphabetic list of switches, ... because the syntax was incomplete. ... FATAL: bash: hda1 permission... ...
      (alt.linux)