virtual ip, what is the right way?
In suse linux 9.1 I've two network card, the first is eth0 (192.168.0.100) and the second is the eth1 (192.168.1.100). I desire to add a new card and mantain the previous two, as eth1:1 and 192.168.2.100 address. If I write ifconfig eth1:1 192.168.2.100 netmask 255.255.255. gw 192.168.2.100 it add a new nic, but what is the right way? this or add via YaST module (as a virtual ip address from the configuration panel)? finally I desire to turn on or turn off manually the nic number 3 (eth1:1) -- kalos
I can't write instructions off the top of my head but I just read a book that does a good job. "Linux Routers - A Primer for Network Administrators - 2nd Edition" by Tony Mancill ISBN: 0-13-009026-3, $45.00 US. Chapter 3 covers the 'Silicon' router which has two NICs but can accomidate more. He is a bit long in his explainations but that detail leaves little to doubt. The book is about custom LINUX routers but it does an excellent job of covering all it takes to do routing and firewalling using the debian.org distribution. SUSE LINUX of course could be substituted for debian. The text covers some advanced internetworking subjects such as using T1, Frame Relay, and ATM. On Sun, 1 Aug 2004 23:13:39 +0200 kbonasia@mclink.net wrote:
In suse linux 9.1 I've two network card, the first is eth0 (192.168.0.100) and the second is the eth1 (192.168.1.100). I desire to add a new card and mantain the previous two, as eth1:1 and 192.168.2.100 address. If I write ifconfig eth1:1 192.168.2.100 netmask 255.255.255. gw 192.168.2.100 it add a new nic, but what is the right way? this or add via YaST module (as a virtual ip address from the configuration panel)? finally I desire to turn on or turn off manually the nic number 3 (eth1:1)
-- kalos
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Kalos, On Sunday 01 August 2004 14:13, kbonasia@mclink.net wrote:
In suse linux 9.1 I've two network card, the first is eth0 (192.168.0.100) and the second is the eth1 (192.168.1.100). I desire to add a new card and mantain the previous two, as eth1:1 and 192.168.2.100 address. If I write ifconfig eth1:1 192.168.2.100 netmask 255.255.255. gw 192.168.2.100 it add a new nic, but what is the right way? this or add via YaST module (as a virtual ip address from the configuration panel)? finally I desire to turn on or turn off manually the nic number 3 (eth1:1)
I've successfully added a virtual alias using YaST with no problems whatsoever. I have only one physical network interface, but since my ISP provides static addressing and I have local devices to which I assign non-routable addresses that are (of course) not in the same network as my global IP, I have to use the virtual alias to make them accessible.
-- kalos
Randall Schulz
On Sunday 01 August 2004 03:09 pm, Randall R Schulz wrote:
I've successfully added a virtual alias using YaST with no problems whatsoever. I have only one physical network interface, but since my ISP provides static addressing and I have local devices to which I assign non-routable addresses that are (of course) not in the same network as my global IP, I have to use the virtual alias to make them accessible.
Randall: Nics cost $14. (free if you scrounge around a bit). Get another and do it right. That way you can set up linux as a firewall/router. -- _____________________________________ John Andersen
John, On Sunday 01 August 2004 17:52, John Andersen wrote:
On Sunday 01 August 2004 03:09 pm, Randall R Schulz wrote:
I've successfully added a virtual alias using YaST with no problems whatsoever. I have only one physical network interface, but since my ISP provides static addressing and I have local devices to which I assign non-routable addresses that are (of course) not in the same network as my global IP, I have to use the virtual alias to make them accessible.
Randall: Nics cost $14. (free if you scrounge around a bit). Get another and do it right. That way you can set up linux as a firewall/router.
Actually, the only non-routable device I have at the moment is my DSL modem, so a second NIC could not help me access it, since it has only one Ethernet port. Randall Schulz
On Sunday 01 August 2004 05:06 pm, Randall R Schulz wrote:
John,
On Sunday 01 August 2004 17:52, John Andersen wrote:
On Sunday 01 August 2004 03:09 pm, Randall R Schulz wrote:
I've successfully added a virtual alias using YaST with no problems whatsoever. I have only one physical network interface, but since my ISP provides static addressing and I have local devices to which I assign non-routable addresses that are (of course) not in the same network as my global IP, I have to use the virtual alias to make them accessible.
Randall: Nics cost $14. (free if you scrounge around a bit). Get another and do it right. That way you can set up linux as a firewall/router.
Actually, the only non-routable device I have at the moment is my DSL modem, so a second NIC could not help me access it, since it has only one Ethernet port.
Randall Schulz
Meby I got your situation all wrong then... I thought you had more than one computer you wanted to hook to the DSL modem. The normal way is a two nic Linux box, with all the other boxes hanging off the second nic in private address space (192.168.yadda.yadda). Its fun and educational to build such a box, but routers do the same for about $30 bucks and are no bigger than a paperback book these days. -- _____________________________________ John Andersen
kbonasia@mclink.net wrote:
In suse linux 9.1 I've two network card, the first is eth0 (192.168.0.100) and the second is the eth1 (192.168.1.100). I desire to add a new card and mantain the previous two, as eth1:1 and 192.168.2.100 address. If I write ifconfig eth1:1 192.168.2.100 netmask 255.255.255. gw 192.168.2.100 it add a new nic, but what is the right way? this or add via YaST module (as a virtual ip address from the configuration panel)? finally I desire to turn on or turn off manually the nic number 3 (eth1:1)
From what I can see, eth1:0 and eth1:1 are aliases to the same card, i.e eth1, so I reckon the third card has to be eth2. I know it's possible to BOND 2 cards to the same IP address range. Whether your scheme would work can only be a suck it and see case, but it's doubtful and looks slightly odd. Regards Sid. -- Sid Boyce .... Hamradio G3VBV and keen Flyer =====LINUX ONLY USED HERE=====
participants (5)
-
John Andersen
-
johnswolter@provide.net
-
kbonasia@mclink.net
-
Randall R Schulz
-
Sid Boyce