Traduisez - Übersetzen - Traduzca - Traduza - Tradurre - Translate

VanLUG Email Archive

Re: Help with Modules - RedHat 5.1

slava voronin
Sat, 29 Aug 1998 16:45:39 -0700

Bill Gillespie wrote:

> After carefully considering the presentation on networking at the last
> meeting I decided to use 2 NICs in my Linux server
>
> I would certainly appreciately some guidance as to what to do next?
>


wrote: in redhat 5.1 go to graphical interface
and in configarotor of network

> configure eth0 and eth1( this is a name of external and internal
> ethernet card

> for external card use IP address , netword number, and gateway from
> your ISP

> for internal chose non-routable net IP addr 192.168.1.1 network
> 192.168.1.0

> activate it . to check what you got type ifconfig

that is example
vcnet:~# ifconfig
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:3584 Metric:1
RX packets:4615 errors:0 dropped:0 overruns:0 frame:0
TX packets:4615 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0

eth0 Link encap:Ethernet HWaddr 00:40:05:40:29:52
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:33315 errors:0 dropped:0 overruns:0 frame:0
TX packets:33216 errors:0 dropped:0 overruns:0 carrier:0
Collisions:6
Interrupt:12 Base address:0x6500

eth1 Link encap:Ethernet HWaddr 00:40:05:31:2A:CF
inet addr:24.113.3.19 Bcast:24.113.3.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:302594 errors:1 dropped:0 overruns:0 frame:1
TX packets:16454 errors:0 dropped:0 overruns:0 carrier:0
Collisions:354
Interrupt:9 Base address:0x6600
in my linux box eth1 external interface , eth0 internal
then chech routing table

vcnet:~# netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 1500 0 0
eth0
24.113.0.0 0.0.0.0 255.255.252.0 U 1500 0 0
eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 3584 0 0 lo

0.0.0.0 24.113.0.1 0.0.0.0 UG 1500 0 0
eth1
when you got to this stage you need to recompile kernel to support
masquerading
and create custom rules for your network