[Wolves] virtual nic

Ron Wellsted wolves at mailman.lug.org.uk
Thu Sep 12 22:10:00 2002


On Thursday 12 Sep 2002 7:01 pm, Chris Meadows wrote:
> Fizz
>
> -----Original Message-----
> From: wolves-admin@mailman.lug.org.uk
> [mailto:wolves-admin@mailman.lug.org.uk]On Behalf Of fizzy
> Sent: 12 September 2002 12:09
> To: wolves@mailman.lug.org.uk
> Subject: [Wolves] virtual nic
>
>
> I am sure there must be a very simple way to create a
> single NIC gateway under linux - one nic, 2 ips
> (192.168.0.1 and the cable modem DHCP address), but i
> can't work out how.
>
> Your DHCP will bring up and interface eth0 once this is up you can manually
> add
> another ip address to the nic with the command:-
>
> ifconfig eth0:1 (new address)(netmask (optional)) up
>
> This has the effect of making the card appear as 2 ip's
>
> Dont forget to add any routing you require as eth0
>
> Hope thats of help
>
> Cheers

You may also have to do a "modprobe ip_alias" first (or even rebuild the 
kernel) depending upon your kernel.


-- 
Ron Wellsted
http://www.wellsted.org.uk
mailto:ron@wellsted.org.uk