LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-26-2004, 01:26 PM   #1
gjmwalsh
Member
 
Registered: Jul 2003
Location: Victoria, British Columbia
Distribution: Mandriva 2010 (cooker) with Bind9, Sendmail, Postgresql and Apache2 servers
Posts: 63

Rep: Reputation: 15
netstat: incorrect eth assignment


Briefly: I use eth0 as my network connection/default gateway, and eth2 for my internal lan connections. Works fine.

Netstat -nr returns (as expected)

192.168.0.0 0.0.0.0 255.255.255.0 U eth2
142.179.96.0 0.0.0.0 255.255.248.0 U eth0
127.0.0.0 0.0.0.0 255.0.0.0 U lo
0.0.0.0 142.179.96.254 0.0.0.0 UG eth0

Because I am using my own dns, I have to use manual setup for the static ip, otherwise my resolv.conf and named files get massacred. I understand that.

The problem comes with setting up the second static IP to handle ssh traffic requiring number rather than name resolution.

While I clearly identify eth1, and ifconfig reflects the correct information, netstat appears to 'overwrite' the existing eth0 destination line, replacing it with 2 equal eth1 lines.

Both static IPs do, of course, have the same netmask. Is this going to cause operational problems? Is there a way to force netstat to 'pay attention' to ifconfig, so to speak?
 
  


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
automatic Ip assignment rupeshdwivedi Linux - Networking 1 08-31-2005 04:20 PM
Incorrect Mouse, Incorrect Keymap, and Trapped in X Kenji Miyamoto Debian 8 08-24-2005 02:42 PM
Assignment of IP-Address santosh_pn Linux - Software 4 06-16-2005 11:22 AM
Last assignment and I am lost Veteq Programming 2 08-12-2004 01:55 PM
IP assignment - permanent? dalraidia Linux - Networking 1 12-13-2002 10:55 AM

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

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