Date: Tue, 17 Oct 2000 23:33:40 -0400 From: Mike Tancsa <mike@sentex.net> To: Kahn@deadbbs.com ("Erin") Cc: questions@freebsd.org Subject: Re: Adding an IP alias without a reboot. Message-ID: <db6qus0fq4oq32fqn9h5lstebadd7eppf0@4ax.com> In-Reply-To: <SEN.971806846.696389195@news.sentex.net> References: <SEN.971806846.696389195@news.sentex.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 17 Oct 2000 14:20:46 -0400, in sentex.lists.freebsd.questions you = wrote: >I have a production machine whos IP is going to change. I have to add an >aliased IP to it for a while from a completely different subnet then by = the >middle of next month have everything changed over (i.e. defaultrouter, = dns >servers, etc.). I'd like to do this with out rebooting the machine if >possable. lets say its fxp0, old address is 192.168.1.1/24, new address is 172.16.20.1/25 ifconfig fxp0 172.16.20.1 netmask 255.255.255.128 alias later.... ifconfig fxp0 172.16.20.1 netmask 255.255.255.128 -alias ifconfig fxp0 192.168.1.1 netmask 255.255.255.0 -delete arp -da route delete 192.168.1.0/24 ifconfig fxp0 172.16.20.1 netmask 255.255.255.128 ---Mike Mike Tancsa (mdtancsa@sentex.net) =09 Sentex Communications Corp, =09 Waterloo, Ontario, Canada "Given enough time, 100 monkeys on 100 routers=20 could setup a national IP network." (KDW2) 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?db6qus0fq4oq32fqn9h5lstebadd7eppf0>