interface alias at start-up
James Bowman Sineath, III
sineathj1 at citadel.edu
Sat Aug 27 22:25:58 GMT 2005
> FWIW:
>
> That doesnt work for me :(
Make sure that you replaced rl0 with the name of your interface, which can
be found with a simple ifconfig -a.
> any other way?
write a simple shell script to do it or do it manually with the following:
ifconfig <interface> inet <ip> netmask <subnet mask> alias
However, using your rc.conf should bind them when you boot up. I have heard
that sometimes you have to statically add routes to your kernel routing
table for aliases to work, however I don't know if there is any truth to
that. You can try adding them with the following command:
route add -host <ip> 127.0.0.1 0
Bow Sineath
Class of 2006, the Citadel
sineathj1 at citadel.edu - bow.sineath at gmail.com
> albi at scii.nl wrote:
>
>>On Sat, 27 Aug 2005 14:26:32 -0700
>>Carstea Catalin <carstea.catalin at gmail.com> wrote:
>>
>>
>>
>>>how tu setting-up interface alias at start-up
>>>
>>>
>>
>># example /etc/rc.conf part
>>
>>defaultrouter="192.168.2.1"
>>
>>ifconfig_rl0="inet 192.168.2.222 netmask 255.255.255.0"
>>
>>ifconfig_rl0_alias0="inet 192.168.2.2 netmask 0xffffffff"
>>ifconfig_rl0_alias1="inet 192.168.2.3 netmask 0xffffffff"
>>ifconfig_rl0_alias2="inet 192.168.2.4 netmask 0xffffffff"
>>ifconfig_rl0_alias3="inet 192.168.2.5 netmask 0xffffffff"
>>ifconfig_rl0_alias4="inet 192.168.2.6 netmask 0xffffffff"
>>
>>_______________________________________________
>>freebsd-questions at freebsd.org mailing list
>>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>>To unsubscribe, send any mail to
>>"freebsd-questions-unsubscribe at freebsd.org"
>>
>>
>>
>>
>
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions
mailing list