Date: Mon, 10 Feb 2003 12:33:46 -0500 From: "Matthew Emmerton" <matt@gsicomp.on.ca> To: "Redmond Militante" <r-militante@northwestern.edu>, <freebsd-questions@FreeBSD.ORG> Subject: Re: rc.conf syntax for ip alias on external nic Message-ID: <00c501c2d12a$90b2e530$1200a8c0@gsicomp.on.ca> References: <20030210171327.GA37804@darkpossum>
next in thread | previous in thread | raw e-mail | index | archive | help
All aliases on the same subnet need to use a netmask of 255.255.255.255, as described in the ifconfig man page. This is what you should be doing: ifconfig_xl0="inet 129.x.x.35 netmask 255.255.255.0" ifconfig_xl0_alias0="inet 129.x.x.6 netmask 255.255.255.255" ifconfig_xl0_alias1="inet 129.x.x.5 netmask 255.255.255.255" Matt ----- Original Message ----- From: "Redmond Militante" <r-militante@northwestern.edu> To: <freebsd-questions@FreeBSD.ORG> Sent: Monday, February 10, 2003 12:13 PM Subject: rc.conf syntax for ip alias on external nic hi i have the following lines in my rc.conf, and i was wondering if my syntax was ok: ------- #here, i'm setting the ip/subnet mask for outside nic interface for a dual homed gateway box ifconfig_xl0="inet 129.x.x.35 netmask 255.255.255.0" #declaring three network interfaces - outside nic interface for gateway, internal interface for private subnet, and loopback network_interfaces="xl0 xl1 lo0" #not sure about the following lines: trying to alias two public ip's to the outside nic interface for the gateway. the gateway will use ipnat to nat these public ip's to two internal client machines hooked up to the internal interface - xl1- of the gateway box ifconfig_xl0_alias0="inet 129.x.x.6 netmask 255.0.0.0" ifconfig_xl0_alias1="inet 129.x.x.5 netmask 255.0.0.0" #inside nic of gateway box ifconfig_xl1="inet 192.168.1.1 netmask 255.0.0.0" ------- i'm having trouble i think with the two aliases to the outside nic of the gateway. it works fine when i have only one client hooked up to the gateway, but when i have both clients hooked up to the gateway through a hub, i have problems - mainly, i reboot both machines, and one machine usually freezes on reboot. any advice would be really appreciated thanks redmond To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00c501c2d12a$90b2e530$1200a8c0>