Re: network setup
hi
I think you are looking for:
server# ifconfig eth0:1 10.1.1.10
server# route add -host 10.1.1.0 eth0:1
other# ifconfig eth0:1 10.1.1.11
other# route add -host 10.1.1.0 eth0:1
---
other# ifconfig -v
eth0:1 Link encap:Ethernet HWaddr 00:00:00:00:00:00
inet addr:10.3.1.11 Bcast:10.255.255.255 Mask:255.0.0.0
other# route -nv
...
10.3.1.0 0.0.0.0 255.255.255.255 UH 0 0 0 eth0:1
-
- see what you can ping
--
other# ping 10.1.1.10
other# ping 10.1.1.11
( see IP-ALIAS howto for more info )
-
- make sure IP_ALIAS is turned on for your kernel...
-
have fun
alvin
> Hi all
>
> with ifconfig i get a listing for eth0: which relates to my local
> ip-address. I have however a psuedonym for relations with a firewall i
> think.. anyways, when i add eth0:1 etc in the etc/init.d/network file and
> reboot... it comes up saying it doesn't know anything about interface
> eth0:1.
>
> How do i set up this eth0:1.. it uses the same network card so modconf
> didn't give me any clues.
>
>
> thanx
>
Reply to: