network

Lee Brotherston lee at nerds.org.uk
Tue Jan 6 11:40:53 GMT 2004


On Tue, Jan 06, 2004 at 10:16:29AM +0000, Kevin wrote:
> Would this be the correct syntax?
> 
> ifconfig ep0 inet 192.168.1.254 netmask 255.255.255.255 alias
> route add -host 192.168.1.2540 127.0.0.1 0
> ifconfig ep0 inet 192.168.2.254 netmask 255.255.255.255 alias
> route add -host 192.168.2.254 127.0.0.1 0
> 
> Am I on the correct track or way off?

Does this need to be in a script for any particular reason?  If you
want to keep things neat you might want to consider putting these
settings into your rc.conf:

ifconfig_ep0_alias0="inet 192.168.1.254 netmask 255.255.255.255"
ifconfig_ep0_alias1="inet 192.168.2.254 netmask 255.255.255.255"
..etc...

You shouldn't need to add static routes to a local address, the
routing should be implied by the address being on the interface :)

HTH

  Lee

-- 
Lee Brotherston - <lee at nerds.org.uk>
Jar Jar Binks Makes The Ewoks Look Like Shaft




More information about the Ukfreebsd mailing list