1 |
I posted this on the Gentoo Forums but I thought it may be a good idea to |
2 |
email the list as well: |
3 |
|
4 |
|
5 |
|
6 |
I am sure this is simple but I can't figure this out. I added a network card |
7 |
to an existing Gentoo installation to have two in total. ETH1 is my new |
8 |
network card which is a Gigabit connection and ETH0 is my old network card |
9 |
with just an 100 Mbit connection. |
10 |
|
11 |
I would like for the new network card (ETH1) to connect to a 10.10.50.X |
12 |
(class C) network which accesses out local LAN and the old network card |
13 |
(ETH0) to connect to a 10.10.60.x (class C) network which is a wireless |
14 |
network that does not communicate with the 10.10.50.X network. This network |
15 |
also has internet access, if that is important. |
16 |
|
17 |
I am not sure what to do. Right now both interfaces get DHCP but I cannot |
18 |
ping either card or get network access. |
19 |
|
20 |
Here is my current /etc/conf.d/net file: |
21 |
|
22 |
|
23 |
|
24 |
Code: |
25 |
|
26 |
---------------------------------------------------------------------------- |
27 |
--------- |
28 |
|
29 |
|
30 |
|
31 |
# This blank configuration will automatically use DHCP for any net.* |
32 |
|
33 |
# scripts in /etc/init.d. To create a more complete configuration, |
34 |
|
35 |
# please review /etc/conf.d/net.example and save your configuration |
36 |
|
37 |
# in /etc/conf.d/net (this file :]!). |
38 |
|
39 |
config_eth1=( "dhcp" ) |
40 |
|
41 |
dhcpcd_eth1="-N" |
42 |
|
43 |
routes_eth1=( "10.10.50.0/24 via 10.10.50.1" |
44 |
|
45 |
"10.10.1.0/24 via 10.10.50.1" |
46 |
|
47 |
"10.10.10.0/24 via 10.10.50.1" |
48 |
|
49 |
"10.10.20.0/24 via 10.10.50.1" |
50 |
|
51 |
"10.10.30.0/24 via 10.10.50.1" |
52 |
|
53 |
) |
54 |
|
55 |
config_eth0=( "10.10.60.3 netmask 255.255.255.0 brd 10.10.60.255" ) |
56 |
|
57 |
routes_eth0=( "10.10.60.0/24 via 10.10.60.1" ) |
58 |
|
59 |
|
60 |
|
61 |
And here are my current routes: |
62 |
|
63 |
|
64 |
|
65 |
Code: |
66 |
|
67 |
---------------------------------------------------------------------------- |
68 |
--------- |
69 |
|
70 |
Kernel IP routing table |
71 |
|
72 |
Destination Gateway Genmask Flags Metric Ref Use |
73 |
Iface |
74 |
|
75 |
10.10.20.0 10.10.50.1 255.255.255.0 UG 0 0 0 eth1 |
76 |
|
77 |
|
78 |
10.10.50.0 10.10.50.1 255.255.255.0 UG 0 0 0 eth1 |
79 |
|
80 |
|
81 |
10.10.50.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 |
82 |
|
83 |
|
84 |
10.10.1.0 10.10.50.1 255.255.255.0 UG 0 0 0 eth1 |
85 |
|
86 |
|
87 |
10.10.30.0 10.10.50.1 255.255.255.0 UG 0 0 0 eth1 |
88 |
|
89 |
|
90 |
10.10.60.0 10.10.60.1 255.255.255.0 UG 0 0 0 eth0 |
91 |
|
92 |
|
93 |
10.10.60.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 |
94 |
|
95 |
|
96 |
10.10.10.0 10.10.50.1 255.255.255.0 UG 0 0 0 eth1 |
97 |
|
98 |
|
99 |
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo |
100 |
|
101 |
0.0.0.0 10.10.50.1 0.0.0.0 UG 0 0 0 eth1 |
102 |
|
103 |
|
104 |
|
105 |
|
106 |
Anything else I need to do or change? |
107 |
|
108 |
|
109 |
|
110 |
Thank you for your time. |
111 |
|
112 |
|
113 |
|
114 |
Regards, |
115 |
|
116 |
Chris K. |