LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-21-2004, 10:33 AM   #1
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
mixing static and dynamic ip addresses


Hello there. I am having trouble connecting a linux computer with a static ip
address (192.168.1.2) assigned to eth0 to a windows XP computer that uses DHCP for its ethernet interface (via crossover cable). Only a physical connection is
established. Not even the ping command works.

When both computers are assigned static IP address, the connection works, but
now it breaks Windows's file/print sharing capabilities when I connect two Windows computers with static IP address. Samba still works using static IP address but using static IP address between two Windows computers partially
breaks networking such as the ability to connect to LAN type games. Any ideas how to fix this?

Thanks for any help,
Yale
 
Old 07-21-2004, 11:49 AM   #2
netmask
Member
 
Registered: Jul 2004
Location: Sherbrooke, Quebec, Canada, North America, World, Milky Way
Distribution: Gentoo
Posts: 103

Rep: Reputation: 16
Are both of the interfaces on the same subnet?

ie. both have 192.168.1.x addresses?
 
Old 07-21-2004, 01:16 PM   #3
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Original Poster
Rep: Reputation: 30
Ahhhhh. Stupid me. The problem why I can't connect is because the computers don't belong to the subnet. I chose 192.168.1.x for all computers running linux and it seems that Windows always likes to choose 169.x.x.x for its dynamically configured address.

Now I still need to solve why Windows networking doesn't like static IP address (i.e. can't connect
to LAN games).
 
Old 07-21-2004, 04:14 PM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Are you getting 169.254.X.X on your DHCP config? 169.254.X.X are "made up" address that are used when there is no response from a DHCP service. Have you checked your DHCP server to see if it's getting the request and what IP it is actually giving out?

Last edited by stickman; 07-21-2004 at 04:17 PM.
 
Old 07-21-2004, 06:32 PM   #5
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Original Poster
Rep: Reputation: 30
I don't have a DHCP server. I'm just connecting two computers via an ethernet crossover cable (which explains why the address is 169.254.x.x). It seems now that the problem of not being able to connect to LAN games (Age of Empires) is solved after I set the appropriate subnet masks.

Now the only problem left is that I can't share drives/printers between two windows computers when they both have static IP address (192.168.1.2 and 192.168.1.3, subnet mask 255.0.0.0).
Microsoft conspiracy?
 
Old 07-21-2004, 07:47 PM   #6
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Are you referencing the computers by name or IP address? If by name, you might consider adding entries to the hosts files on both systems.
 
  


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
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
Multiple static IP addresses fr0zen Linux From Scratch 5 11-23-2005 06:47 PM
NS with static or dynamic IP cijunet Linux - Networking 3 05-08-2003 11:04 PM
Mixing Shared and Dynamic Libraries linuxeco Programming 1 02-02-2003 09:04 PM
2 static IP addresses on 2 eth cards Zingaro2002 Linux - Networking 8 01-21-2003 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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