Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Configure internet access across two subnets

Status
Not open for further replies.

csbdeady

Programmer
May 18, 2002
119
GB
At work I am attempting to configure internet access for a Sun Blade 1000 which uses eri0 as its primary interface.

The catch is that the subnet that the Sun box is connected to differs from that which the internet router is connected.

On a Win 2k box I would just set the following:

IP = 192.168.205.111
Subnet = 255.255.255.0
Default Gateway = 192.168.205.254
Primary DNS = 192.168.200.173

The .173 device is actually a Win2k Server with a rule attached stating to forward all traffic not explicitly for it to 192.168.200.11 - this being the router to the internet.

In "Windows land" the above works fine. Config on a Mac also works easily.

The Sun box with the above setup does not get on to the internet. I can ping 192.168.200.173 (and any other 192.168.200.xxx that is connected for that matter).

/etc/hosts

127.0.0.1 localhost
192.168.205.111 Naylor loghost
/etc/defaultrouter

192.168.205.254
ifconfig -a

lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
eri0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.205.111 netmask ffffff00 broadcast 192.168.205.255
ether 0:3:ba:12:63:df
lo0: flags=2000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6> mtu 8252 index 1
inet6 ::1/128
eri0: flags=2000841<UP,RUNNING,MULTICAST,IPv6> mtu 1500 index 2
ether 0:3:ba:12:63:df
inet6 fe80::203:baff:fe12:63df/10
/etc/resolve.conf

domain test.testlab.co.uk
nameserver 194.74.65.68
nameserver 62.6.40.178

I have tried changing the following with no luck: defaultrouter entry to 192.168.200.173 (and 192.168.200.11 which 173 passes the traffic to)

Any suggestions on how to config. the above setup across the two subnets would be much appreciated!
Thanks
-Colin
 
Oh I should also add that I did choose DNS when installing the OS... and that the OS in question is Solaris 8 SPARC.

Not that that matters as it's actually a dual-boot machine and I'm having the exact same problem in Sol 10;)
 
ahah making progress!

route add 192.168.200.173 192.168.205.254

^-- tells the sun box to look to a second router beyond the first (in lamens terms).

Now DNS reverse lookup works fine, eg:

traceroute
correctly gives me Apple's IP.

However HTTP in Mozilla and FTP at the shell still do not work... something else must be missing (any thoughts?)
 
check
# netstat -rn
it will give you more info about where your packets are routed

# route get ip
can tell you where the Sun sends your ip packet to (first hop)

if the OS utilities such as telnet, ping, nslookup etc. work and an application won't it is usually a config error within these tools (proxy!?)


Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years in the domain of the OS, Backup and Storage
 
csbdeady, try adding the proxy server in Internet Explorer.

I had the same problem this morning and it's taken me 4 days to work it out. Heh.

I still can't get DNS lookups to work though internally across my two subnets, but I CAN browse the Internet.

I can't ping but I can goto the website - odd?

I can't ping myserver.mydomain.local but I can ping it's IP address - odd?

:)
 
Also, don't forget to add the route to browse the Internet!

route add 0.0.0.0 mask 0.0.0.0 192.168.205.x Metric 20

replace x with the host address of the NIC this side of the subnet.
 
* or equivilent on a Sun machine to Internet Explorer (or anywhere you can specify a proxy server) lol.
 
Have you changed the nsswitch.conf file?

cp nsswitch.dns nsswitch.conf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top