LinuxQuestions.org
Review your favorite Linux distribution.
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 11-26-2007, 06:55 AM   #1
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Lubuntu 14.04 LTS, Kali
Posts: 297

Rep: Reputation: 30
XP - Linux network : IP address question.


Hi there,
I have an XP machine linked to a LInux box via crossover cable. The XP machine has two network cards because I often ICS to my Linux box. For those familiar with XP I have to "Network Bridge" the two cards. Now when I bridge the two cards and run ipconfig in XP I see that the "Network Bridge Interface" gets assigned

IP of 192.168.0.X.
Default Gateway 192.168.0.1
DHCP Server 192.168.0.1
DNS Server 192.168.0.1


The question I need to ask is that from my Linux box I can ping the Network Bridge at 192.168.0.X but I can also ping 192.168.0.1 . When I ping the latter what is it that I am actually pinging ??? Note that I am not connected to or sharing the net at the time.

Thanks again !

Uncle-C
 
Old 11-26-2007, 09:39 AM   #2
angryfirelord
Member
 
Registered: Dec 2005
Distribution: Fedora, CentOS
Posts: 514

Rep: Reputation: 66
Do you have a router connected to a modem? You're probably pinging one of those two things.
 
Old 11-26-2007, 10:32 AM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
ok more details would be nice. network bridge means you tie the 2 NICs together so they function as 1 NIC as far as the OS is concerned.

ICS has nothing to do with network bridge. ICS = internet connection sharing. in other words you connect to the internet via a NIC, USB modem, or some other kind of modem device.

as you are using a crossover cable to connect Linux to XP and you have stated you are using ICS so that makes your winXP box for all intensive purposes a router/nat firewall. not a very good idea, but it is easy and it works well enough if you do not have the $40 to go out and buy a Linksys or D-link or something along that line router for your internet connection. or you are on a dial-up connection and thus can not setup a router or do not have the extra hardware to build an IPCop (google for that you might like it) firewall to connect to the internet for you.

1. what kind of internet connection do you have
2. unless you have 3 NICs and or are doing mega file sharing via your LAN, why network bridging? no need to bind those 2 cards like that
3. 192.168.0.1 when ICS is running is the default gateway of the XP shared connection device.
 
Old 11-26-2007, 01:23 PM   #4
uncle-c
Member
 
Registered: Oct 2006
Location: The Ether
Distribution: Lubuntu 14.04 LTS, Kali
Posts: 297

Original Poster
Rep: Reputation: 30
Thanks for the reply lleb.
I think you forgot to read the last line of my original post. I was not net connected at the time.
My XP machine is connected to an ADSL modem via ethernet and I do not have a router. I often share my net connection with my Linux box as my ISP does not allow for direct linux connections. For this I assumed I needed two Nics on the XP box. One to connect to the ADSL modem and the other to connect to the linux box.
I figured out that 192.168.0.1 ( when I an NOT connected to the net) is my ADSL Modem.
Just as an aside I will try not bridging the two nics and see if I can connect to the net.
I am sure I tried previously and it did not work.

Thanks again !

Uncle
 
Old 11-26-2007, 03:37 PM   #5
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
To give us a little more info, unbridge your network cards, connect to the net and on your XP box run "ipconfig /all" and post the output here. Also, post the output of "ifconfig -a" on your linux box. (Feel free to obscure your real IP if it shows up on your XP box's output, but I'm guessing it will be a 192.168 number anyway).
 
Old 11-26-2007, 05:28 PM   #6
linuxonbute
Member
 
Registered: May 2005
Location: North lincolnshire
Distribution: Mint 18 Cinnamon
Posts: 47

Rep: Reputation: 19
Some time ago I had Desktop PC which connected to my ADSL Modem?router( intranet address 192.168.1.1 ( the private side - i.e my LAN ) via ethernet. I wanted to connect my ancient laptop to the internet and so I bought a pcmcia wireless card for the laptop and a pci wireless card for the Desktop PC.

My adsl modem was connected to eth0 ( the ethernet card ) and the card had the following config:
IP add 192.168.1.30
gateway 192.168.1.1

For the wireless card
IP add 192.168.2.30
gateway 192.168.1.1

for the laptop
IP 192.168.2.50
gateway 192.168.2.30

That worked fine.
It would not work with all on the 192.168.1.x range

hth,
Norman
 
  


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
FC4 I get IP address (on any network) but I can't access to outside the network bodhisattva Fedora 10 02-07-2006 06:58 AM
Linux dhcp client can't get address on Windows network km4hr Linux - Networking 12 03-10-2005 08:35 PM
network address terminoligy question blackzone Linux - Networking 1 09-10-2004 04:50 AM
What is Gateway address and what is Network address? abefroman Linux - Networking 1 03-17-2004 08:25 PM
question about network address and broadcast address yuzuohong Linux - Networking 1 09-18-2002 11:47 AM


All times are GMT -5. The time now is 08:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration