Thank you! that did it... I was using the same netmask as the one in my
ifconfig_xl0
> This is my partial rc.conf under /etc directory
> ifconfig_xl0="inet 192.168.1.100 netmask 255.255.255.0"
> defaultrouter="192.168.1.1"
> ifconfig_xl0_alias0="inet 192.168.1.101 netmask 255.255.255.255"
> ifconfig_xl0_alias1="inet 192.168.1.102 netmask 255.255.255.255"
> If I want to add another IP 192.168.1.103 from command line, try this as
> root:
> #ifconfig xl0 add 192.168.1.103 netmask 255.255.255.255
> Hope that help you.
> Dang Huynh
> > I'm trying to add a second ip my network interface and it doesn't work.
> Here
> > is the part in my rc.conf
> > defaultrouter="10.0.0.1"
> > hostname="bsdtest1.corp.mysite.com"
> > ifconfig_xl0="inet 10.0.10.44 netmask 255.255.0.0"
> > ifconfig_xl0_alias0="inet 10.0.10.45 netmask 0xffff0000"
> > and also I have tried
> > ifconfig_xl0_alias0="inet 10.0.10.45 netmask 255.255.0.0"
> > Any idea?
> > Thank you
> > Maz.