LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-26-2006, 07:49 AM   #1
Sushy
Member
 
Registered: Sep 2005
Distribution: FreeBSD
Posts: 84

Rep: Reputation: 15
several ip on one eth0


Hi!

I`m running Slackware 10.2 (Kernel 2.6.x)
I have one ip 1.1.1.1 on my eth0
I need to configure WAN iface with several ip
So I did:
# ifconfig eth0:0 1.1.1.2
# ifconfig eth0:1 1.1.1.3

Maybe there is some more operations i should perform?!

Last edited by Sushy; 07-26-2006 at 07:50 AM.
 
Old 07-26-2006, 02:51 PM   #2
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
One network card can only have one IP address (unless you get into bridging and rather advanced stuff)
 
Old 07-26-2006, 04:06 PM   #3
Marsanghas
Member
 
Registered: Sep 2003
Location: Spijkenisse, Netherlands
Posts: 119

Rep: Reputation: 15
Quote:
Originally Posted by Sushy
Hi!

I`m running Slackware 10.2 (Kernel 2.6.x)
I have one ip 1.1.1.1 on my eth0
I need to configure WAN iface with several ip
So I did:
# ifconfig eth0:0 1.1.1.2
# ifconfig eth0:1 1.1.1.3

Maybe there is some more operations i should perform?!
Are those your real IP-numbers??? For local networks there are the 10.*.*.* and 192.168.*.* ranges.
And as said... 1 ip per eth.
 
Old 07-26-2006, 04:42 PM   #4
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Quote:
Originally Posted by mdarby
One network card can only have one IP address (unless you get into bridging and rather advanced stuff)
no sir
you can bind any amount of ip addresses to a single interface, that's possible even in windoze

Quote:
Originally Posted by Sushy
Maybe there is some more operations i should perform?!
You sintax is correct but I don't know for any other operations that you could do, besides of setting up your firewall as your liking
 
Old 07-27-2006, 06:28 PM   #5
peter72
Member
 
Registered: Oct 2002
Location: Charlottesville, VA
Distribution: Ubuntu (home), SLES (work)
Posts: 196
Blog Entries: 1

Rep: Reputation: 30
fyi eth0 = eth0:0

I would also include netmask:


ifconfig eth0:1 10.1.1.2. netmask 255.255.255.0

or whatever. This does work, done it many a time.

Pete
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 02:33 PM
howto delete existing static ip of ethernet(eth0)& reconf multiple ips on eth0 viveku Linux - Networking 2 02-02-2004 01:30 AM
howto delete static ip configured on eth0 & reconf multiple ip on one eth0(redhat8 viveku Linux - Networking 0 01-31-2004 10:40 AM
Bringing up interface eth0: determining ip information for eth0... failed ralphethomas Linux - Networking 0 01-24-2004 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration