I am running a 2.0.18 kernel compiled with the required ip_masq features
and RH 4.0. I have not yet tried to configure the masquarading
with ip_fwadm(?) because I can`t acheive any network conectivity with both
cards activated. (In order to get the machine online, I remove
/etc/rc.d/rc3.d/S10network and run a script I wrote.
This is how it works (sort of):
1) no network configuration through rc.d/init.d
2) the following shell script:
-------------------------------------
#!/bin/sh
ifconfig lo up
ifconfig eth1 198.82.89.218 up
route add localhost
route add -net 198.82.89.0 eth1
route add default gw 198.82.89.1 eth1
ifconfig
route
---------------------------------------
This will set up one interface (the onboad one and strangely the kernel
names it eth1) with my designated ip address.
What doen't work (but should?):
1)/etc/rc.d/rc3.d/S10network linked to /etc/rc.d/init.d/network
2)the original /etc/sysconfig/network-scripts/ifup-eth0
(with my designated ip address)
-------------------------------
#!/bin/sh
#>>>Device type: ethernet
#>>>Variable declarations:
DEVICE=eth0
IPADDR=198.82.89.218
NETMASK=255.255.255.0
NETWORK=198.82.89.0
BROADCAST=198.82.89.255
GATEWAY=198.82.89.1
ONBOOT=yes
#>>>End variable declarations
-------------------------------
3) an added ifup-eth1
(with the intended gateway private network IP address)
-------------------------------
#!/bin/sh
#>>>Device type: ethernet
#>>>Variable declarations:
DEVICE=eth1
IPADDR=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
GATEWAY=192.168.0.1
ONBOOT=yes
#>>>End variable declarations
----------------------------
Booting this way, the kernel seems to have a hard time deciding what kind
of ethernet media I have connected (I've tried every combination on both
the onboad and added adapter), after hanging for a while it tilmes out and
finishes booting.
ifconfig reports:
-----------------------------
lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU:7168 Metric:1
RX packets:343 errors:0 dropped:0 overruns:0
TX packets:343 errors:0 dropped:0 overruns:0
eth0 Link encap:10Mbps Ethernet HWaddr 08:00:2B:E2:C3:B4
inet addr:198.82.89.218 Bcast:198.82.89.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:15022 errors:3713564 dropped:0 overruns:0
TX packets:18 errors:0 dropped:0 overruns:0
Interrupt:10 Base address:0xb400
eth1 Link encap:10Mbps Ethernet HWaddr 00:40:05:2D:A2:B7
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2512 errors:306349 dropped:0 overruns:0
TX packets:165 errors:0 dropped:0 overruns:0
Interrupt:15 Base address:0xb000
----------------------------
and route reports:
----------------------------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
198.82.89.0 0.0.0.0 255.255.255.0 U 0 0 4 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 1 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 3 lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 9 eth1
0.0.0.0 198.82.89.1 0.0.0.0 UG 0 0 3 eth0
0.0.0.0 192.168.0.1 0.0.0.0 UG 1 0 0 eth1
-----------------------
These look ok to me but I'm not sure. Any ideas?
Thank's for your time,
-David Singley
dsingley@vt.edu
-- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
Copyright © 1995-1997 Red Hat Software. Legal notices