Solaris 10 as Router...


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10 as Router...
# 1  
Old 09-28-2008
Solaris 10 as Router...

Hi, I want to build a whole network on my own, but i see its not quite simple. I have a Dlink DSL-320T router for an ANNEX A ADSL connection.

A here is the first issue:
When i connect to the DSL-320T modem the modem get me an ip thru DHCP 192.168.1.101 (Ip of modem is 192.168.1.100). But after the modem connect to the ISP provider it gives to the rtls0 interface a ip like 83.4.204.22...

The other interface on this machine is bge0 with static ip 192.168.1.1

How do i make that PC1 can connect to the internet via the modem? I can see the bge0 but not the 192.168.1.100 modem.

I already made:

#svcadm -e ipv4_forwarding -u
#svcadm -e ipv4_routing -u
The output from "routeadm" shows that routing and forwarding is enabled.

Please help.
Solaris 10 as Router...-routerjpg
# 2  
Old 09-28-2008
Where is your default route pointing to? Also check irst if there's any mismatch of your speed/duplex settings between your system and the switch.
Your netmasks should be specified correctly too. We need more output from the system to analyseSmilie
# 3  
Old 09-28-2008
So i done a manual sys-unconfig Smilie

unplumed bge0 and left only rtls0 for the modem connection.

The rtls0 interface is right now the primary interface and configured with sys-unconfig as DHCP.

The modems ip is 192.168.1.100 and after connecting to it a get an outsource ip fro my provider. But my internet connection doesnt work on solaris.

Ive put in the resolv.conf:
nameserver 192.168.1.100
nameserver 194.205.152.35 #DNS from my provider

and it still doent work.

I tried to plug in rtls0 a configured router and the internet works, but why dont on the Dlink modem???
# 4  
Old 09-28-2008
It seems your DSL modem is giving your public IP address to the rtls0 interface. All of the remaining addresses are not routable to the Internet so you will need either to configure the modem to act as a router (if supported) or implement NAT in the Solaris box.
# 5  
Old 09-28-2008
So until u connect to ISP u have ip address 192.168.1.101 which was given by modem but after when u connect to ISP u have 83.4.204.22 right?
Let us see your
ifconfig -a
cat /etc/nsswitch.conf
cat /etc/resolv.conf
cat /etc/default.router
and also netstat -rn before connecting to ISP and after.

Troubleshoot this like this, for now forget abount client PC, first try solve modem side that Solaris ownself must see world, after what providing internet to client PC s is easy ..
# 6  
Old 09-29-2008
These are my files:
nsswitch.conf
-----------------------------------------------------
Quote:
passwd: files
group: files
#hosts: files # Commented out by DHCP
hosts: files dns # Added by DHCP
#ipnodes: files # Commented out by DHCP
ipnodes: files dns # Added by DHCP
networks: files
protocols: files
rpc: files
ethers: files
netmasks: files
bootparams: files
publickey: files
# At present there isn't a 'files' backend for netgroup; the system will
# figure it out pretty quickly, and won't use netgroups at all.
netgroup: files
automount: files
aliases: files
services: files
printers: user files

auth_attr: files
prof_attr: files
project: files

tnrhtp: files
tnrhdb: files
/etc/resolv.conf
----------------------------------------------------
Quote:
nameserver 194.204.152.34
ifconfig -a and netstat -rn before getting the new ISP IP

Quote:
ifconfig -a
-----------------------------------------------
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
rtls0: flags=1100843<UP,BROADCAST,RUNNING,MULTICAST,ROUTER,IPv4> mtu 1500 index 2
inet 192.168.1.1 netmask ffffff00 broadcast 192.168.1.255
ether 0:e0:4c:71:9:67
rtls1: flags=1104843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,ROUTER,IPv4> mtu 1500 index 3
inet 192.168.1.101 netmask ffffff00 broadcast 192.168.1.255
ether 0:e0:4c:63Smilie3d

bash-3.00# netstat -rn

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 192.168.1.100 UG 1 2 rtls1
192.168.1.0 192.168.1.1 U 1 43 rtls0
192.168.1.0 192.168.1.101 U 1 1 rtls1
224.0.0.0 192.168.1.101 U 1 0 rtls1
127.0.0.1 127.0.0.1 UH 4 157 lo0
AFTER

Quote:
ifconfig -a
bash-3.00# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
rtls0: flags=1100843<UP,BROADCAST,RUNNING,MULTICAST,ROUTER,IPv4> mtu 1500 index 2
inet 192.168.1.1 netmask ffffff00 broadcast 192.168.1.255
ether 0:e0:4c:71:9:67
rtls1: flags=1104843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,ROUTER,IPv4> mtu 1500 index 3
inet 83.22.165.14 netmask ffffffff broadcast 83.22.165.14
ether 0:e0:4c:63Smilie3d

Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 83.22.165.14 UG 1 0 rtls1
83.22.165.14 83.22.165.14 UH 1 0 rtls1
192.168.1.0 192.168.1.1 U 1 43 rtls0
224.0.0.0 83.22.165.14 U 1 0 rtls1
127.0.0.1 127.0.0.1 UH 4 157 lo0

Before geting the new IP a can access the modem and ping it too, also the LAN network from the other interface. But after geting the ip from my provider, a can not ping the modem or google or something.

Last edited by beumont; 09-29-2008 at 08:44 AM..
# 7  
Old 09-29-2008
why your ipadress assigned as default gateway ???
Look your modem site...
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. IP Networking

Solaris 11 Express NAT/Router IP Fragments

Upon replacing my linux router/server with a Solaris one I've noticed very poor network performance. The server itself has no issues connecting to the net, but clients using the server as a router are getting a lot of IP fragments as indicated from some packet sniffing I conducted. Here was my... (3 Replies)
Discussion started by: vectox
3 Replies

2. UNIX for Dummies Questions & Answers

Remote Unix printing to my WinXP works with no router. How can I make it work through my router?

I set up remote printing on a clients Unix server to my Windows XP USB printer. My USB printer is connected directly to my PC (no print server and no network input on printer). With my Win XP PC connected to my cable modem (without the router), i can do lp -dhp842c /etc/hosts and it prints. I... (7 Replies)
Discussion started by: jmhohne
7 Replies

3. Solaris

building solaris-based enterprise router-firewall project

hi guys, its been a while since my last visit here, could not keep up the pace on this ever changing industry :) i'd just doing my home research under vmware to make a solaris-based router-firewall using zones - doing a lot of reading about zones & review solaris zone functionality. and... (4 Replies)
Discussion started by: stdout
4 Replies

4. Solaris

Looking for a compartable Solaris wireles router

I have SURFboard SB6120 Modem which is compartable with Unix and I would like a wireless router with comparable speed and security. I have been looking at the Linksys wireless WRT610N model but I don't know if it is compartable with Solaris. I have been researching but I have not come across any... (2 Replies)
Discussion started by: Tenyhwa
2 Replies

5. IP Networking

linksys router and solaris 8

I just sys-unconfigged my ultra sparc which is on my home network where I have 2 PCs attached. When I go to install Solaris 8, it asks various things re: networking. Specifically, when it asks for the IP addy for the DNS server, I input the info, but it barfs back "IP addy info not found". I... (10 Replies)
Discussion started by: nicomen
10 Replies

6. Solaris

Solaris as router between two subnets

I have two networks which is not connected to each other. Each network has its own internet connection. I also have one Solaris machine with two NICs connected to both of the networks. How do I use the Solaris to connect both network so that hosts from either side of the network can... (9 Replies)
Discussion started by: Ahmad Pakhri
9 Replies
Login or Register to Ask a Question