Date: Tue, 24 Feb 2004 16:36:00 +0100 (CET) From: Andre Rein <ar@g23.org> To: freebsd-net@freebsd.org Subject: Re[2]: ifconfig and route problem. Message-ID: <20040224163434.T97179@juergen.edv-winter.de> In-Reply-To: <20040224163021.F97179@juergen.edv-winter.de> References: <C52F34106949174F9D92F96C2411AAA90433A2@exchange.wanglobal.net> <20040224163021.F97179@juergen.edv-winter.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 24 Feb 2004, Andre Rein wrote: > > >> # ifconfig rl0 $ip (where ip can be also 192.168.100.1), my > > >> default route is deleted, cut off server for my net. > > >> > > > > SDS> Say you wanted to change from 192.168.100.1/24 to 10.0.0.1/24 > > SDS> With default gateway changed from 192.168.100.254 to 10.0.0.254 > > > > SDS> ifconfig rl0 inet 10.0.0.1/24 alias > > SDS> route change default 10.0.0.254 > > SDS> ifconfig rl0 inet 192.168.100.1/24 -alias > > > > What if I need to change ip from 192.168.100.1/24 to 192.168.100.2/24? > > Can I alias IP-address from same subnet? I think no. > > > > iirc: ifconfig rl0 inet 10.0.0.1 netmask 255.255.255.255 alias damn copy'n paste s/10.0.0.1/192.168.0.2 ;) regards -- "And some greetings from the Toaster"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040224163434.T97179>