Networking Forums

Networking Forums > Computer Networking > Linux Networking > Change default source IP of outgoing packets in multihomed config?

Reply
Thread Tools Display Modes

Change default source IP of outgoing packets in multihomed config?

 
 
Andy Shepard
Guest
Posts: n/a

 
      06-16-2005, 07:09 PM
I currently have the following home network configuration:

A Sun Ultra 10 with one ethernet port on the motherboard and
a Sun QFE board (4 ports), for 5 ethernet ports total, and
a Cyclades PC-300/TE1 connected to my T1 line. The PC-300 has
address 216.254.16.24, and my network is 64.81.187.64/27.
The problem is that the driver for the PC-300 board sucks
ass [1]. I want to ditch the PC-300 board, and pick up
a used Cisco 2501 and CSU/DSU or equivalent on eBay, but
I still want to use the Ultra 10 as the outgoing router for
my network, so I'm thinking of a configuration like this:

------------ --------------
<-- Ethernet out --| Ultra 10 |--- Ethernet -----| Cisco 2501 |
<-- to network ----| | (192.168.0.0/24) --------------
(64.81.187.64/27) ------------ +-- To T1 ---->
(216.254.15.24)

The Cisco router will have its WAN interface on 216.254.15.24,
and its ethernet on 192.168.0.1. It will this routing table:

default gw 216.254.15.1
64.81.187.64/27 gw 192.168.0.2
216.254.15.0/24 WAN
192.168.0.0/24 ethernet

The Ultra 10 will have:

eth0 192.168.0.2 netmask 255.255.255.0
eth1 64.81.187.65 netmask 255.255.255.224
eth2-eth4 other RFC 1918 space
Routing table:

default gw 192.168.0.1
192.168.0.0/24 eth0
64.81.187.64/27 eth1
(and so on)

This should work for everything behind the Ultra 10,
but I think that if something running on the Ultra 10
tries send to a destination outside my network, unless
it explicitly bind()s to something other than INADDR_ANY,
it will use a source address of 192.168.0.2, which is
obviously not okay. Does anyone out there know what
I can do on the Ultra 10 to make packets sent from it
default to a source address of 64.81.187.65 instead
(preferably other than modifying the kernel networking
code). Alternately, does anyone know how to de-suckulize
the PC-300 driver?

[1] After spending two weeks cleaning up all the 32-bitisms, I
discovered that I can't transmit faster than about 30 kilobytes/sec
without causing TX underruns. Changing some DMA threshold values
helped, but it still can't handle full duplex reasonably, and
sometimes just gets constipated and won't transmit anything
for several seconds, producing numerous NETDEV WATCHDOG: hdlc0:
transmit timed out messages on the console.

--
Andy Shepard

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
outgoing packets with sendto() Tom Linux Networking 1 11-24-2006 02:20 PM
IP Alias default outgoing interface? agentbullvi@gmail.com Linux Networking 3 12-28-2005 06:25 PM
How to select IP address for outgoing packets? Graham Murray Linux Networking 3 04-28-2005 06:34 PM
Persistent source IP address per process id on a multihomed computer? Peter Windows Networking 0 03-09-2005 02:21 PM
forwarding outgoing packets Nicola Gatti Linux Networking 4 02-17-2004 06:56 AM



1 2 3 4 5 6 7 8 9 10 11