Re: Aliasing Question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Charrua <charrua@kernel.net.uy>:
> In the linux I type the next commands:
>
> ifconfig eth0:0 200.61.94.98
> route add -host 200.61.94.98 dev eth0
>
> The real host IP is 200.40.10.35
>
> But, this not work!!. If I use the ifconfig command only see 200.40.10.35 I
> don't see eth0:0.

I don't think the 'route' command is required at all, the kernel will
automatically configure the necessary tables to make sure the IP address
set for the alias is accepted locally.

ifconfig eth0:0 up 200.61.94.98
                ^^ - add this.

You may care to add the correct 'netmask' and 'broadcast' addresses to
the ifconfig line if the default isn't correct.

If this doesn't do the trick, which kernel are you using, what is the
current output of 'ifconfig -a' and 'ifconfig -V'.


-- 
Darryl Miles
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux