public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Question about /etc/conf.d/net entry
@ 2007-02-02 17:07 Shawn Singh
  2007-02-02 17:33 ` Michal 'vorner' Vaner
       [not found] ` <20070202150401.4bc336ce@pascal.spore.ath.cx>
  0 siblings, 2 replies; 6+ messages in thread
From: Shawn Singh @ 2007-02-02 17:07 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2385 bytes --]

Hello list,

I've got my /etc/conf.d/net setup as follows:

# Interface Handler
modules=( "ifconfig" )

# eth0 (WAN) config
config_eth0=( "dhcp" )

# eth1 (LAN) config
config_eth1=( "192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255" )
routes_eth1=( "192.168.1.0 via 192.168.1.1" ) # the idea here is that I wish
to have all traffic intended for hosts on 192.168.1.0 pass through
192.168.1.1.

Here's the output from ifconfig eth1:

eth1      Link encap:Ethernet  HWaddr 00:10:B5:0E:D6:E9
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:10 Base address:0x6c00

This is my routing table:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
c-71-203-144-0. *               255.255.252.0   U     0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         c-71-203-144-1. 0.0.0.0         UG    0      0        0 eth0

One odd thing is, if I run mii-tool eth1, I get:
eth1: no link

eth1 is connected to my client machine via crossover cable (the wire scheme
A end is plugged into eth1, and the wire scheme b end is plugged into the
client machine)

I'm experiencing difficulty where my client can't get to the Internet (the
pages just time out), and I can't ping the gateway (192.168.1.1) from the
client. Also, from the firewall, I can't ping the client machine (
192.168.1.2).

Pings from the firewall to the client result in Destination Unreachable, and
if I remember correctly, pings from the client to the firewall just time
out.

I'm running shorewall (v 3.0.8), so I've tried shutting it down (shorewall
clear) to eliminate that as an option, but still not getting anywhere.

.config has the following entries in it, please let me know if there are
others that you need to see.

CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_NETFILTER=y
CONFIG_IP_NF_NAT=y

Thanks,

Shawn

"Doing linear scans over an associative array is like trying to club someone
to death with a loaded Uzi."
--Larry Wall

[-- Attachment #2: Type: text/html, Size: 4409 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-02-04 23:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-02 17:07 [gentoo-user] Question about /etc/conf.d/net entry Shawn Singh
2007-02-02 17:33 ` Michal 'vorner' Vaner
     [not found] ` <20070202150401.4bc336ce@pascal.spore.ath.cx>
2007-02-02 21:51   ` Shawn Singh
2007-02-02 23:55     ` Dan Farrell
2007-02-03 17:46       ` Shawn Singh
2007-02-04 23:37         ` Daniel Barkalow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox