Gentoo Archives: gentoo-user

From: Shawn Singh <callmeshawn@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Question about /etc/conf.d/net entry
Date: Fri, 02 Feb 2007 17:13:22
Message-Id: 7225537e0702020907w1598350erf823adc50fe56fc9@mail.gmail.com
1 Hello list,
2
3 I've got my /etc/conf.d/net setup as follows:
4
5 # Interface Handler
6 modules=( "ifconfig" )
7
8 # eth0 (WAN) config
9 config_eth0=( "dhcp" )
10
11 # eth1 (LAN) config
12 config_eth1=( "192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255" )
13 routes_eth1=( "192.168.1.0 via 192.168.1.1" ) # the idea here is that I wish
14 to have all traffic intended for hosts on 192.168.1.0 pass through
15 192.168.1.1.
16
17 Here's the output from ifconfig eth1:
18
19 eth1 Link encap:Ethernet HWaddr 00:10:B5:0E:D6:E9
20 inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
21 UP BROADCAST MULTICAST MTU:1500 Metric:1
22 RX packets:0 errors:0 dropped:0 overruns:0 frame:0
23 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
24 collisions:0 txqueuelen:1000
25 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
26 Interrupt:10 Base address:0x6c00
27
28 This is my routing table:
29
30 Kernel IP routing table
31 Destination Gateway Genmask Flags Metric Ref Use
32 Iface
33 192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
34 c-71-203-144-0. * 255.255.252.0 U 0 0 0 eth0
35 loopback * 255.0.0.0 U 0 0 0 lo
36 default c-71-203-144-1. 0.0.0.0 UG 0 0 0 eth0
37
38 One odd thing is, if I run mii-tool eth1, I get:
39 eth1: no link
40
41 eth1 is connected to my client machine via crossover cable (the wire scheme
42 A end is plugged into eth1, and the wire scheme b end is plugged into the
43 client machine)
44
45 I'm experiencing difficulty where my client can't get to the Internet (the
46 pages just time out), and I can't ping the gateway (192.168.1.1) from the
47 client. Also, from the firewall, I can't ping the client machine (
48 192.168.1.2).
49
50 Pings from the firewall to the client result in Destination Unreachable, and
51 if I remember correctly, pings from the client to the firewall just time
52 out.
53
54 I'm running shorewall (v 3.0.8), so I've tried shutting it down (shorewall
55 clear) to eliminate that as an option, but still not getting anywhere.
56
57 .config has the following entries in it, please let me know if there are
58 others that you need to see.
59
60 CONFIG_IP_ADVANCED_ROUTER=y
61 CONFIG_NETFILTER=y
62 CONFIG_IP_NF_NAT=y
63
64 Thanks,
65
66 Shawn
67
68 "Doing linear scans over an associative array is like trying to club someone
69 to death with a loaded Uzi."
70 --Larry Wall

Replies

Subject Author
Re: [gentoo-user] Question about /etc/conf.d/net entry Michal 'vorner' Vaner <michal.vaner@×××××××.net>