LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-19-2003, 03:11 AM   #1
gsibble
Member
 
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162

Rep: Reputation: 30
Two Network Cards?


Well, I know how to use ifdown and ifup to switch from my wired to my wireless card......

but say I have a server up and running with two wired network cards. So far I haven't been able to get both my wireless and my wired on at the same time using DHCP. Can I do that with two network cards in Linux or not? I'm definitely gonna have two network cards in my next system and have them put into different routers to spread out traffic over two IPs and then choose which services I run on which IP.....but they both have to be over DHCP. Is that possible? THANKS!
 
Old 08-19-2003, 05:28 AM   #2
brew1brew
Member
 
Registered: Jul 2003
Location: Plano TX (north of Dallas)
Distribution: Kubuntu
Posts: 165

Rep: Reputation: 30
I have a laptop that has a wireless and a wired PCMCIA cards in it, I have had both cards in and up at the same time. I run mandrake 9.1 on it and don't' have any problem, both are running DHCP to my firewall. My firewall box has two Ethernet cards in it, one running DHCP to my ISP and one that is my inside network with static config on it.

is your DHCP server your internal server/internet connection share? or are you trying to get two IPs from your ISP? It could be the way your DHCP server is configured.
 
Old 08-19-2003, 06:55 PM   #3
gsibble
Member
 
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162

Original Poster
Rep: Reputation: 30
It's my internal server/router. When I have my eth0 up and I try "ifup eth1", it comes back as saying "File already exists".

I can't have both up without that error Anything I can do?
 
Old 08-20-2003, 07:16 PM   #4
brew1brew
Member
 
Registered: Jul 2003
Location: Plano TX (north of Dallas)
Distribution: Kubuntu
Posts: 165

Rep: Reputation: 30
ok, I think this indicates that the interface already got the ip from the DHCP server,

[root@localhost les]# ifup eth1
Determining IP information for eth1... done.
[root@localhost les]# ifup eth1
Determining IP information for eth1...SIOCADDRT: File exists
done.

so if you do ifconfig, you should see something lilke this

[root@localhost les]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50A:EB:6D:CF
inet addr:192.168.1.240 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:29 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:4545 (4.4 Kb) TX bytes:1296 (1.2 Kb)
Interrupt:11 Base address:0x4000

eth1 Link encap:Ethernet HWaddr 00:05:5D:F1:24:A5
inet addr:192.168.1.246 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:500966 errors:0 dropped:0 overruns:0 frame:0
TX packets:451400 errors:2 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:229188599 (218.5 Mb) TX bytes:73032146 (69.6 Mb)
Interrupt:3 Base address:0x100

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:68775 errors:0 dropped:0 overruns:0 frame:0
TX packets:68775 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5151974 (4.9 Mb) TX bytes:5151974 (4.9 Mb)


The thing to do is go to your server/router and ping each of the addresses that are listed to verify they are working. you can also to netstat -rn to look at your routing table, example follows

[root@localhost les]# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
[root@localhost les]#

you will see that both interfacess are listed and what interface is your default gateway, the 0.0.0.0 network is default, as you can see mine is on eth0
 
Old 08-21-2003, 08:32 AM   #5
gsibble
Member
 
Registered: Jul 2003
Distribution: Arch .5 and Solaris 9/10
Posts: 162

Original Poster
Rep: Reputation: 30
Ahhh....ok, thanks!! I'll go check it out!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
network cards kyd Linux - Networking 4 07-27-2005 09:07 PM
2 network cards, single network, load balancing? tormentum Linux - Networking 1 02-13-2005 02:37 PM
two network cards - one for local network, one for http/vsftpd server scottster Linux - Networking 1 01-20-2005 08:52 PM
Two network cards = network problem filch Linux - Networking 3 01-04-2005 02:06 AM
2 network cards, 2 network connections - routing problem tvojvodi Linux - Networking 4 02-24-2004 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:01 AM.

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