LinuxQuestions.org
Help answer threads with 0 replies.
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 07-30-2003, 04:51 AM   #1
ram_dhupkar
LQ Newbie
 
Registered: Jul 2003
Location: India pune
Posts: 12

Rep: Reputation: 0
outgoing source ip address


Hi,

I have a linux system (suse linux) with two nic. when i configured it i was getting the outgoing adress from my machine of 1st nic as a source address but now when i request outside it shows the ip address of second nic as a source address. But i want it should be 1st nic. How can i do that.

thanks in advance


Ramchandra
 
Old 08-26-2003, 01:40 PM   #2
JoeDuncan
Member
 
Registered: Aug 2003
Location: Ottawa
Distribution: Redhat 5.2, 6.0, 6.1, Mandrake 7.2, 8.0, 9.1, 9.2, 10.0, Gentoo, Debian 3.1r0
Posts: 224

Rep: Reputation: 30
Not sure I fully understand you, let me see if I get this straight and I will see what I can do to help.

This is what I understand:

You have a machine with 2 network cards you are hoping to setup as some form of gateway/router.
NIC1 should be your inernet facing nic.
NIC2 should be your LAN (private network) facing nic.
When you first set it up and established an internet connection, the outbound packets showed NIC1 as their source address.
Now, for some reason, when you establish an outbound internet connection, the source addresses on those packets is the address of NIC2.

Ok, let me know if that's correct. If it is I have a couple questions:

1) Have you switched your cables around at all? You might have swapped them if they were not properly labelled, although doing so should have given you some network problems (wrong IPs etc... unless you're using DHCP for both NICs)

2) Where are you sniffing the packets from? Do you have another machine between this one and the internet? Between this one and the LAN? Or are you sniffing on this machine itself? Depending on where you are in the routing process you are going to get different results, especially if it's a packet being routed through your machine and not originating there...
 
  


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
to change outgoing mac and ip address korenje Linux - Networking 3 12-31-2005 12:41 AM
how source address can be changed in packet payal_shah Linux - Networking 3 03-29-2005 06:56 AM
iptables (changing source address) rickthemick Linux - Networking 12 11-05-2004 07:43 AM
problem to print source address and destination address jooboo Programming 2 11-26-2003 03:24 PM
2 NICs, RH9, Outgoing IP Address Problem... sornman Linux - Networking 4 08-28-2003 09:02 AM

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

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