[Voyage-linux] Static IP on Alix

Jay Nugent (spam-protected)
Mon Sep 5 02:09:07 HKT 2011


Greetings,

On Sun, 4 Sep 2011, John Schultz wrote:

> Shouldn't you just be able to specify what interface ssh uses?

    A packet is first pushed through the IP "stack" and ultimately through 
the route table.  The route table will determine the BEST route for that 
packet based on the Destination address.  The Source address of that 
packet will take on the IP address of whichever interface the routing 
table found to be the best route.

    Most systems have but one ethernet, so we become accustomed to the 
"machine" using the IP address of that interface.   When you have two or 
more ethernet interfaces, the above stated process becomes more obvious.

    For example, I have interfaces 216.144.208.26 *and* 44.102.1.250.   If 
I attempt to reach a host in the 44/8 network, my Source address will 
become 44.102.1.250.   If I try to reach anything else, my route table 
indicates to use the 216.144.208.26 interface and my Source address 
becomes that.

    Hope this has helped.

       --- Jay Nugent



>
> On Sat, Sep 3, 2011 at 21:59, Gustin Johnson <gustin at meganerd.ca> wrote:
>
>> I am not sure that I understand what you are trying to do.  Are both
>> interfaces on the same network with IPs that part of the same subnet?
>>
>> If the problem happens after one of your interfaces gets an IP via
>> DHCP then you could also have routing issues.  Check for more than one
>> default route with "ip route".
>>
>> You could also force SSH to listen on a specific IP with the
>> ListenAddress option in /etc/ssh/sshd_config file.
>>
>>
>> 2011/9/3 John Schultz <jschultz0614 at gmail.com>:
>>>>>   First, move the nameservers to the /etresolvconf/{correct file
>> location
>>>>> and name}
>>>>
>>>> ok, i have put the nameserver in /resolvconf/run/resolv.conf
>>>
>>> Wait,... /resolveconf/run/resolve.conf? No.... should be
>>> /etc/resolvconf/resolv.conf.d/tail (i think. it could be base or tail)
>>>
>>>
>>>>> If you have both set to dynamic, what settings do you get (please paste
>> a
>>>>> full report)
>>>>
>>>> DDns?... no dynamic DNS
>>>
>>> No not DDNS
>>>
>>> set your IP settings to dynamic.
>>>
>>>
>>>>
>>>>> Second, is the device your SSHing into on your network or elsewhere?
>>>>
>>>> the device is on my local network. If i deactivate eth1 tne connection
>> on
>>>> eth0 return fast.
>>>
>>> You may need to filter ssh traffic to only use eth0 rather then on both
>> eth0
>>> and 1.
>>>
>>>
>>> Good luck,
>>> John
>>>
>>> _______________________________________________
>>> Voyage-linux mailing list
>>> Voyage-linux at list.voyage.hk
>>> http://list.voyage.hk/mailman/listinfo/voyage-linux
>>>
>>>
>>
>

-- 

         () ascii ribbon campaign in
         /\ support of plain text e-mail

"No free man shall ever be debarred the use of arms. The strongest
reason for the people to retain the right to keep and bear arms is, as a
last resort, to protect themselves against tyranny in government"--
Thomas Jefferson, 1 Thomas Jefferson Papers, 334
+------------------------------------------------------------------------+
| Jay Nugent   jjn at nuge.com    (734)484-5105    (734)649-0850/Cell       |
|   Nugent Telecommunications  [www.nuge.com]                            |
|   Internet Consulting/Linux SysAdmin/Engineering & Design/ISP Reseller |
| ISP Monitoring [www.ispmonitor.org] ISP & Modem Performance Monitoring |
| Web-Pegasus    [www.webpegasus.com] Web Hosting/DNS Hosting/Shell Accts|
+------------------------------------------------------------------------+
  14:01:01 up 28 min,  1 user,  load average: 0.01, 0.03, 0.06
-------------- next part --------------
_______________________________________________

Voyage-linux mailing list

Voyage-linux at list.voyage.hk

http://list.voyage.hk/mailman/listinfo/voyage-linux



More information about the Voyage-linux mailing list