SUMMARY: Virtual Interfaces
Rafael Angarita <rangarita-VvwjqbBkUIbKMjHCGH/[email protected]> Thu, 09 Sep 2004 10:22:32 -0400
| Newsgroups | gmane.linux.admin.managers |
|---|---|
| Message-ID | <[email protected]> |
Thanks everybody for your answers... (H. Bertrand, B. Geer, S.
Sandau, D. Parlee, B Bartels, R. Binz, J. Madden, K. Korb)
Original Question:
Does anybody know:
1.- If linux kernel 2.2 (and upper) supports virtual network
interfaces (like Solaris)
2.- If so how many support by physical interface?
3.- How to configure it
Answer:
1.- Yes (somebody indicated 2.4 and upper sure 2.2 not sure)
2.- Somebody told me 256 (somebody toldme he configured more than
300, I guess you have to recompile kernel to do it)
3.- ifconfig eth0:N <ip> where N is 0-255
For example:
ifconfig eth0:1 192.168.1.1
and to remove the address from that interface use:
ifconfig eth0:1 down
You can use the ifconfig options (netmasks...)
To do it persistently:
You can make this persistent by creating a new configuration file
(On Redhat Linux mabay different on other linux versions)
/etc/sysconfig/network-scripts/ifcfg-eth0:1
Add the following eneries:
IPADDR=192.168.1.1
NETMASK=255.255.255.0
Additional information:
- http://www.iptel-now.de/HOWTO/LINUX_IP_ALIAS/linux_ip_alias.html
- http://www.ibiblio.org/mdw/HOWTO/IP-Alias/index.html
--
Rafael Angarita
Telcel Bellsouth
(+58212)(2009765)
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers-35TzE1X9F6582KRnZfj+bdi2O/[email protected]
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers