LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-28-2005, 10:00 AM   #1
SharkBait
LQ Newbie
 
Registered: Feb 2005
Posts: 27

Rep: Reputation: 15
1PC - 2 NICs


Hello,

Fairly new to networkng in linux, but here goes anyway...


In my PC I have 2 nics, one I use as a DHCP client that pulls an address from a server. That works all fine, cause if it wasnt I wouldnt be posting here.

The 2nd nic I have set to static with a 1.200 address. Now I am trying to go out to a wireless device on the 1.200 nic but it does not seem to find it even though the address on the device is 1.212.

Do I have to play with the /etc/host file? Any general help is appreciated!

Thank you,
 
Old 04-28-2005, 02:29 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
trying to "go out" how do you mean? it shouldn't be down to hosts, but the routing tables you've configured. what does route and ifconfig say about the network interfaces on that machine?
 
Old 04-28-2005, 04:10 PM   #3
SharkBait
LQ Newbie
 
Registered: Feb 2005
Posts: 27

Original Poster
Rep: Reputation: 15
----------------------------------------- Routing table---------------------------------------
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.123.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.123.254 0.0.0.0 UG 0 0 0 eth1

--------------------------------------------- Ifconfig -------------------------------
eth1 inet addr: 192.168.123.180 bcast: 192.168.123.255 mask 255.255.255.0
eth0 inet addr: 192.168.1.200 bcast: 192.168.1.255 mask 255.255.255.0

Though... not sure why the bcast on eth0 is set to 1.255 should that just be set to 1.200 (i'm guessing thats the gateway for it?

I want to have the internet come through the 123.180 address which it is. And then I have a wireless device on the 1.200 address I am trying to access via its built in web interface but I have to go through the 192.168.1.200 address. Works fine under windows...

Last edited by SharkBait; 04-28-2005 at 04:20 PM.
 
Old 04-28-2005, 04:45 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
the broadcast address is totally correct, as it's basically what's masked out by the netmask.

so if you ping a node that is connected to the 192.168.123.0 network, then the interface on that network will always be used. there's no clever logic in the routing, as it already nkows directly it's on that network. so can you ping the device at all? do you have any other devices on that network to attempt to ping?
 
Old 04-29-2005, 08:10 AM   #5
SharkBait
LQ Newbie
 
Registered: Feb 2005
Posts: 27

Original Poster
Rep: Reputation: 15
I could plug in another device. But I just find it odd. I plugged the wireless device into a computer on another machine (winxp) and I can get to it and ping it etc.

I'll keep looking into this though. Thank you
 
Old 05-06-2005, 05:44 PM   #6
SharkBait
LQ Newbie
 
Registered: Feb 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Its wierd...


I've tried a couple of other devices they show a LAN connection to eth0 but I can not ping it.

I'm trying to ping the device like this:

ping 192.168.1.201 -I eth0

Destination Host Unreachable

Now sure why. I've tried both a cross-over and straight-through.
 
  


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
2 NICs d-rez Linux - Networking 3 06-13-2006 02:08 PM
Intel D845GLLY + Multiple Intel Pro 100 NICs + kernel 2.6.x = NICs don't work egable Linux - Hardware 0 02-04-2005 02:30 PM
2 NICs steve_babbage Linux - Networking 0 07-15-2003 01:18 AM
2 nics saavik Linux - Networking 1 03-06-2002 04:37 PM
more than 2 nics sauli Linux - Software 1 02-11-2002 07:45 AM

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

All times are GMT -5. The time now is 05:47 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