[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: routing question



* nate (debian-user@aphroland.org) spake thusly:
>
> from the looks of the info you gave machine A and E are on
> the same hub..the cables seem to work as they can both get to
> the dsl..so my guess would be theres a incorrect netmask or
> broadcast address set on either A or E, and the DSL gateway
> doesn't seem to care. since machine A and E are on the same subnet
> and on the same hub theres no routing involved ..its just "there".
 
here's the /etc/network/interfaces for machine e (debian woody):
  
iface eth0 inet static
      address 192.168.1.99
      netmask 255.255.255.0
      network 192.168.1.0
      broadcast 192.168.1.255
      gateway 192.168.1.254
				 
machine a (RH6.2) fires up eth0 and eth1 via /etc/rc.d/rc.local with the
following statements:
				  
ifconfig eth1 192.168.2.1 netmask 255.255.255.0 broadcase 192.168.2.255 up
ifconfig eth0 192.168.1.10 netmask 255.255.255.0 broadcast 192.168.1.255 up
route add -net 192.168.2.0 netmask 255.255.255.0 eth1 
route add -net 192.168.1.0 netmask 255.255.255.0 eth0
				   
the broadcast / netmask scenario you described (while potentially
problematic) seems to be okay.  unless i'm overlooking the obvious.
				    
> either that or you may have
> firewall rules on one or the other
> that could be blocking traffic. my
> guess would be bad broadcast
> somewhere tho ive had similar
> problems.
				     
machine e has no firewall.  machine a contains the following:
				      
/sbin/ipchains -A input -j ACCEPT -i eth0 -s 0/0 67 -d 0/0 68 -p udp
/sbin/ipchains -P forward DENY 
/sbin/ipchains -A forward -s 192.168.2.0/24 -j MASQ
				       
as further background, i can ssh from a machine on the internet to
machine a.  also, i can ssh from machines on the 192.168.2.x to
machine a.  it seems that only machine e (192.168.1.99) can't
successfully get to (or see) machine a.
-- 
 ____) ,_)        ,_)
(-(__  |_  _  _ |/
 ____) | |(_)(_ |\
(                 \_,
 _______________________________________________
| http://www.exitwound.org : hard to find       |
 _______________________________________________
| "The wages of sin are death; but after        |
| they're done taking out taxes, it's just a    |
| tired feeling:"                               |
 _______________________________________________
 -------------BEGIN GEEK CODE BLOCK-------------
| Version: 3.1                                  |
| GJ/IT d- s: a C+++>$ UL++++ P+++ L+++ E--- W++| 
| N+@ o K- w O- M- V PS+ PE Y+ PGP++ t+@ 5@ X++ |
| R tv+@ b+ DI++++ D+ G++ e++++ h---- r+++ y+++ |
 --------------END GEEK CODE BLOCK--------------



Reply to: