[2175] in linux-net channel archive
Newbie routing problems
daemon@ATHENA.MIT.EDU (root)
Wed Mar 20 11:15:14 1996
Date: Wed, 20 Mar 1996 15:50:00 +0100 (MET)
From: root <root@tricky.decam.se>
To: linux-net@vger.rutgers.edu
Hi!
I wonder if there's anybody out there who can help me out on this.
We have two C-class net connected with X.25 and routers.
I'm new on this, started to work with this just yesterday and
the guy that used to work here quit the very same day. :(
I've tried all night through to make it work so now my brain
feels like an eggboiler.
The problem is the routing from "Other Net" -> Internet/localnet.
From the "Other Net" -> "Our Net ( to the DNS )" it works as it
should ( I think...), but i can't reach out from the DNS.
I can also go the other way from DNS - > "Other Net".
But I can't reach it from any other box in "Our Net".
Any suggestions any one?
ifconfig looks like this:
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:2000 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
TX packets:2446 errors:0 dropped:0 overruns:0
eth0 Link encap:10Mbps Ethernet HWaddr 00:20:AF:BB:DA:51
inet addr:194.17.120.5 Bcast:194.17.120.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22947 errors:0 dropped:0 overruns:0
TX packets:14490 errors:0 dropped:0 overruns:0
Interrupt:15 Base address:0x300
and here's the routing table.
Kernel routing table
Destination Gateway Genmask Flags MSS Window Use Iface
localnet * 255.255.255.0 U 1436 0 5808 eth0
194.17.115.0 baguette.decam. 255.255.255.0 UG 1436 0 764 eth0
loopback * 255.0.0.0 U 1936 0 1683 lo
default slim.decam.se * UG 1436 0 2291 eth0
and here's my rc.inet1
IPADDR="194.17.120.5" # REPLACE with YOUR IP address!
NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
NETWORK="194.17.120.0" # REPLACE with YOUR network address!
BROADCAST="" # REPLACE with YOUR broadcast address, if you
# have one. If not, leave blank and edit below.
GATEWAY="194.17.120.1" # REPLACE with YOUR gateway address!
# Uncomment ONLY ONE of the three lines below. If one doesn't work, try
again.
# /sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK} broadcast ${BROADCAST}
# /sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
/sbin/ifconfig eth0 ${IPADDR} netmask ${NETMASK}
/sbin/ifconfig eth0 alias 194.17.120.30
/sbin/ifconfig eth0 alias 194.17.120.31
/sbin/ifconfig eth0 alias 194.17.120.32
/sbin/ifconfig eth0 alias 194.17.115.2
# Uncomment these to set up your IP routing table.
/sbin/route add -net ${NETWORK} netmask ${NETMASK}
/sbin/route add default gw ${GATEWAY} metric 1
/sbin/route add -net 194.17.115.0 netmask 255.255.255.0 gw 194.17.120.3
dev eth0
___________________________________
| X.25 Modem | X.25 Modem
_______|________ ________|________
| router | | router |
| 194.17.151.4 | | 194.17.120.3 |
|______________| |_______________|
| |
_______|________ ________|________
| | | |
| Other Net | | Our Net | def gw 194.17.120.1
| 194.17.115.0 | | 194.17.120.0 | DNS & Mailserver
| | | | Linux 1.2.13
|______________| |_______________|
gw 194.17.115 _______|_______
Linux 1.3.76 | Internet |
| router |
| 194.17.120.1 |
| 194.17.115.1 |
|_______________|
|
Internet
X.25
Regards....
Anders Karlsson
mailto:anders.karlsson@decam.se