[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: IP masquerade question
- From: "Henri J. Schlereth" <henris bga com>
- To: redhat-install-list redhat com
- Cc: babucher mtu edu (Brian Bucher)
- Subject: Re: IP masquerade question
- Date: Mon, 29 May 2000 17:07:55 -0500 (CDT)
> I have a test Win98 PC with settings:
> IP 192.168.0.100
> Gateway 192.168.0.1
> Netmask 255.255.255.0
Check for broadcast as well on W998. Dont know if they changed
much from W95
Henri
Included are modifications based on my on setup which includes
masquerading and internal IP's
>
> --------------------------------------------------------------
> /etc/sysconfig/network
>
> [root /etc/sysconfig]# more network
> NETWORKING=yes
> FORWARD_IPV4="no"
FORWARD_IPV4="yes"
> HOSTNAME="npisrv1.n-p-i.net"
> DOMAINNAME="n-p-i.net"
> GATEWAY="204.167.104.161"
> GATEWAYDEV="eth0"
the below is un-needed unless you are running some ipx support
(Samba doesnt need this)
> IPX="no"
> IPXINTERNALNETNUM="0"
> IPXINTERNALNODENUM="0"
> IPXAUTOPRIMARY="on"
> IPXAUTOFRAME="on"
optional unless NIS active
> 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"
optional below
> 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"
You are missing a broadcast address
BROADCAST=192.168.0.255
> ONBOOT="yes"
optional
> 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.
>
--
-------------------------------------------------------------
Register Linux User #142063 http://counter.li.org
ICANN Large Member #202260 http://www.icann.org
Founding Member of Something or the Other.
-------------------------------------------------------------
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]