[Q]: connecting 2 linux boxes

Francis Vidal (francis@linux1.usls.edu)
Mon, 27 Jan 1997 14:20:39 +0800 (HKT)


hello linuxers!

i'm trying to connect 2 linux boxes, the first box (1) has 2 ethernet
cards (202.47.133.46 -- for my LAN, 192.168.1.1 -- for other LAN). i
wanted the other box (2) to access (1). (2) is not on my LAN.

question is, how do i configure (2) so that it can access (1) given the IP
address on the NIC is 192.168.1.1? here's the /etc/rc.d/rc.inet1 of (1)
for more info:

---BEGIN /etc/rc.d/rc.inet1---

#!/bin/sh

#
#
# Loopback network
IPADDR=127.0.0.1
NETWORK=127.0.0.0

/sbin/ifconfig lo $IPADDR
/sbin/route add -net $NETWORK lo

#
#
# Eth0 - DExxx - private network
IPADDR=202.47.133.46
NETWORK=202.47.133.0
NETMASK=255.255.255.240
BROADCAST=202.47.133.255

/sbin/ifconfig eth0 $IPADDR netmask $NETMASK broadcast $BROADCAST up
/sbin/route add -net $NETWORK eth0

#
#
# Eth1 - 3c509 -
IPADDR=192.168.1.1
NETWORK=192.168.1.0
NETMASK=255.255.255.0
BROADCAST=192.168.1.255

/sbin/ifconfig eth1 $IPADDR netmask $NETMASK broadcast $BROADCAST up
/sbin/route add -net $NETWORK eth1

#
#
# Default route
GATEWAY=202.47.133.34

/sbin/route add default gw $GATEWAY eth0

---END /etc/rc.d/rc.inet1---

tia!

[ francis vidal ] systems administrator, @usls, univ. of st. la salle
la salle avenue, bacolod city http://www.usls.edu +63(34) 435-2324
---------------------------------------------------------------------
P G P key available at - - ftp://ftp.usls.edu/pub/pgpkey/francis.pgp