[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: IP masquerade question



Go down to your friendly computer store and ask for a crossover cable with
RJ45 connectors. Otherwise you need to use a hub to connect the two
machines together.

Nabeel




On Mon, 29 May 2000, Brian A Bucher wrote:

> 
> Greetings again,
> 
> I'm trying to use my linux box to perform IP-masquerading
> and firewalling.  So far I haven't had much luck in even
> getting the basics to work.  I've been trying to get the
> multiple-interfaces setup going, but no luck.
> 
> The linux box is presently connected to the net using
> eth0 at 204.167.104.162 through a router 204.167.104.161
> 
> I'm trying to get eth1 set up at 192.168.0.1, to use as
> a gateway for a local MASQ'd network.  
> 
> I have a test Win98 PC with settings:
> IP      192.168.0.100
> Gateway 192.168.0.1
> Netmask 255.255.255.0
> 
> I have the network card of the test PC connected (with RJ45 cable)
> to the eth1 network card in the linux box.  
> The test PC can ping itself (.100), but it can't ping 192.168.0.1
> I also can't ping the PC from the linux box.
> 
> I've been trying to RTFM as much as possible, but it's time to
> stop and ask for directions. :)
> 
> Any suggestions would be appreciated!
> 
> Thanks,
> Brian
> 
> 
> 
> Here are the relevant files (that I know of) for this setup:
> 
> --------------------------------------------------------------
> /etc/sysconfig/network
> 
> [root /etc/sysconfig]# more network
> NETWORKING=yes
> FORWARD_IPV4="no"
> HOSTNAME="npisrv1.n-p-i.net"
> DOMAINNAME="n-p-i.net"
> GATEWAY="204.167.104.161"
> GATEWAYDEV="eth0"
> IPX="no"
> IPXINTERNALNETNUM="0"
> IPXINTERNALNODENUM="0"
> IPXAUTOPRIMARY="on"
> IPXAUTOFRAME="on"
> NISDOMAIN=""
> [root /etc/sysconfig]# 
> --------------------------------------------------------------
> /etc/sysconfig/network-scripts/ifcfg-eth0
> 
> [root /etc/sysconfig/network-scripts]# more ifcfg-eth0
> DEVICE="eth0"
> IPADDR="204.167.104.162"
> NETMASK="255.255.255.224"
> ONBOOT="yes"
> BOOTPROTO="none"
> IPXNETNUM_802_2=""
> IPXPRIMARY_802_2="no"
> IPXACTIVE_802_2="no"
> IPXNETNUM_802_3=""
> IPXPRIMARY_802_3="no"
> IPXACTIVE_802_3="no"
> IPXNETNUM_ETHERII=""
> IPXPRIMARY_ETHERII="no"
> IPXACTIVE_ETHERII="no"
> IPXNETNUM_SNAP=""
> IPXPRIMARY_SNAP="no"
> IPXACTIVE_SNAP="no"
> [root /etc/sysconfig/network-scripts]# 
> 
> --------------------------------------------------------------
> /etc/sysconfig/network-scripts/ifcfg-eth1
> 
> [root /etc/sysconfig/network-scripts]# more ifcfg-eth1
> DEVICE="eth1"
> IPADDR="192.168.0.1"
> NETMASK="255.255.255.0"
> ONBOOT="yes"
> BOOTPROTO="none"
> IPXNETNUM_802_2=""
> IPXPRIMARY_802_2="no"
> IPXACTIVE_802_2="no"
> IPXNETNUM_802_3=""
> IPXPRIMARY_802_3="no"
> IPXACTIVE_802_3="no"
> IPXNETNUM_ETHERII=""
> IPXPRIMARY_ETHERII="no"
> IPXACTIVE_ETHERII="no"
> IPXNETNUM_SNAP=""
> IPXPRIMARY_SNAP="no"
> IPXACTIVE_SNAP="no"
> [root /etc/sysconfig/network-scripts]# 
> --------------------------------------------------------------
> 
> 
> Here is the output of the relevant commands:
> 
> --------------------------------------------------------------
> [root ~]# /sbin/ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:D0:B7:1D:CE:A6  
>           inet addr:204.167.104.162  Bcast:204.167.104.191  Mask:255.255.255.224
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:3555 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:5473 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100 
>           Interrupt:9 Base address:0xd000 
> 
> eth1      Link encap:Ethernet  HWaddr 00:D0:B7:1D:89:30  
>           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:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:100 
>           Interrupt:5 Base address:0xb800 
> 
> lo        Link encap:Local Loopback  
>           inet addr:127.0.0.1  Mask:255.0.0.0
>           UP LOOPBACK RUNNING  MTU:3924  Metric:1
>           RX packets:4 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0 
> 
> [root ~]# 
> --------------------------------------------------------------
> [root ~]# /sbin/route -n
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
> 192.168.0.1     0.0.0.0         255.255.255.255 UH    0      0        0 eth1
> 204.167.104.162 0.0.0.0         255.255.255.255 UH    0      0        0 eth0
> 204.167.104.160 0.0.0.0         255.255.255.224 U     0      0        0 eth0
> 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
> 127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
> 0.0.0.0         204.167.104.161 0.0.0.0         UG    0      0        0 eth0
> [root ~]# 
> 
> --------------------------------------------------------------
> 
> 
> -- 
> To unsubscribe: mail redhat-install-list-request redhat com with
> "unsubscribe" as the Subject.
> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]