newbie question - IP configuration for new internet server on network with multiple IP blocks

newbie question - IP configuration for new internet server on network with multiple IP blocks

Post by carl » Sun, 25 Apr 1999 04:00:00



I'm a newbie to Solaris so this may be a simple question.              

I have just setup a new Solaris 2.6 x86 server.  The server works fine
when I give it an IP address that is in the same class C as the
router's class C address.  However, if I give it an IP that is not
within the same class C as the router it is unable to see any other
address that is outside of the non-router IP block.

I am going to move the server to another network (co-location) and
there is a very high chance that the IP address will not fall within
the same IP block as the router so I need to resolve this.

/etc/defaultrouter
I set the etc/defaultrouter to the router's address, no <cr> or spaces

/etc/netmasks
updated the file with class c and netmask 255.255.255.0
e.g.
192.168.1.0 255.255.255.0
192.169.25.0 255.255.255.0

I tried:
route add default $gateway <router address>
but it said it was unreachable

I also updated the following, but I don't believe they make a
difference.

/etc/nsswitch.conf
modified the line:
hosts: files dns

/etc/hosts
added the nameserver IP and fully qualified internet domain name

/etc/resolv.conf
domain domainname
nameserver ns1
nameserver ns2

-carlo

 
 
 

newbie question - IP configuration for new internet server on network with multiple IP blocks

Post by Andrew Gabri » Sun, 25 Apr 1999 04:00:00




Quote:>I'm a newbie to Solaris so this may be a simple question.          

>I have just setup a new Solaris 2.6 x86 server.  The server works fine
>when I give it an IP address that is in the same class C as the
>router's class C address.  However, if I give it an IP that is not
>within the same class C as the router it is unable to see any other
>address that is outside of the non-router IP block.

>I am going to move the server to another network (co-location) and
>there is a very high chance that the IP address will not fall within
>the same IP block as the router so I need to resolve this.

>/etc/defaultrouter
>I set the etc/defaultrouter to the router's address, no <cr> or spaces

This is correct, but the router needs to be on your subnet -
it is afterall the route from your subnet to somewhere
(maybe everywhere) else.

Quote:>/etc/netmasks
>updated the file with class c and netmask 255.255.255.0
>e.g.
>192.168.1.0 255.255.255.0
>192.169.25.0 255.255.255.0

>I tried:
>route add default $gateway <router address>
>but it said it was unreachable

You can't point directly to a router on a different subnet,
as the system won't know how to route packets to the router.

If you don't know what the router on your subnet is, you
could try setting your netmask to 0.0.0.0 and see if the
router will proxy-arp. Really, you should go find your
network admin and get them to explain your network
topology to you.

--
Andrew Gabriel
Consultant Software Engineer

 
 
 

newbie question - IP configuration for new internet server on network with multiple IP blocks

Post by carl » Sun, 25 Apr 1999 04:00:00


Thanks for the info.  ...no other network admin here, I'm it :).

 I'm primarily a programmer/Domino web developer with my own network
here in my office.  My 20+ other servers are all NT and I am totally
disappointed in their stability so I am trying to migrate to Solaris,
albeit slowly.  The NT servers, though, have no problem with using
other class C addresses than the router.  

I tried setting the subnet to 0.0.0.0 but when I try to ping anything
outside of the class C I get:
ICMP Net Unreachable from gateway c20 (ip-addr) for icmp from c20....

I connect to the internet thorugh a cisco 2524.  My network gets to
the cisco through an IBM 8271 switch to reduce collisions.  

I wonder if it can be the switch that is the problem, as I always
thought of it as being a passive device.  It has an IP address for
snmp, but when you run a tracert it never shows up.  I doubt this to
be the problem, but I can't count it out.

The router is physically on my subnet, and I have entered its IP
address directly into the appropriate files as I indicated below but I
still can't seem to get it to work correctly.

Any other ideas are greatly appreciated.

thanks.
-carlo





>>I'm a newbie to Solaris so this may be a simple question.              

>>I have just setup a new Solaris 2.6 x86 server.  The server works fine
>>when I give it an IP address that is in the same class C as the
>>router's class C address.  However, if I give it an IP that is not
>>within the same class C as the router it is unable to see any other
>>address that is outside of the non-router IP block.

>>I am going to move the server to another network (co-location) and
>>there is a very high chance that the IP address will not fall within
>>the same IP block as the router so I need to resolve this.

>>/etc/defaultrouter
>>I set the etc/defaultrouter to the router's address, no <cr> or spaces

>This is correct, but the router needs to be on your subnet -
>it is afterall the route from your subnet to somewhere
>(maybe everywhere) else.

>>/etc/netmasks
>>updated the file with class c and netmask 255.255.255.0
>>e.g.
>>192.168.1.0 255.255.255.0
>>192.169.25.0 255.255.255.0

>>I tried:
>>route add default $gateway <router address>
>>but it said it was unreachable

>You can't point directly to a router on a different subnet,
>as the system won't know how to route packets to the router.

>If you don't know what the router on your subnet is, you
>could try setting your netmask to 0.0.0.0 and see if the
>router will proxy-arp. Really, you should go find your
>network admin and get them to explain your network
>topology to you.

 
 
 

1. NEWBIE QUESTION: Help on TCP/IP network configuration

Hi!

I have a rather simple question (I think :-). I'm running the
following network configuration.

    WinXP               RedHat Linux               Win95

192.168.10.2<--->192.168.10.1 192.168.20.1<--->192.168.20.2
                          10.0.0.0  
                              ^
                              |
                              |
                            ppp0

The Linux computer has three ethernet-cards, configured like above.
Both WinXP and Win95 can access the internet via ppp0
(ADSL-connection), but the can't ping eachother:
- 192.168.10.2(WinXP) can ping 192.168.10.1(Linux) and
192.168.20.1(Linux), but not 192.168.20.2(Win95)
- 192.168.20.2(Win95) can ping 192.168.20.1(Linux) and
192.168.10.1(Linux), but not 192.168.20.1(WinXP)

My routing table looks like this:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref  
Use Iface

195.190.xxx.yyy *               255.255.255.255 UH    0      0      
0 ppp0

192.168.20.0    *               255.255.255.0   U     0      0      
0 eth2

10.0.0.0        *               255.255.255.0   U     0      0      
0 eth1

192.168.10.0    *               255.255.255.0   U     0      0      
0 eth0

127.0.0.0       *               255.0.0.0       U     0      0      
0 lo

default         195.190.xxx.yyy 0.0.0.0         UG    0      0      
0 ppp0

With xxx and yyy replaced by numbers :-)

Can anybody help me? Thanks in advance!

Viktor

2. LS-120 summary required

3. ipfwadm -- How do you set multiple internet IP over a local network ?

4. What to do, what to do, what to do...

5. local IP vs. "internet IP" (socket question)

6. how to emulate SO_REUSEADDR using TLI and TCP? (SunOS 5.4)

7. How do you set multiple internet IP over a local network ?

8. Printer prints extra page !

9. IP Masquerade Question: Local Access to Server on Ext. IP

10. IP Masq/IP Chains Question (forwarding smtp to 'internal' mail server...)

11. Can you sandwich valid IP networks in between invalid IP networks?

12. Stupid question about assigning an internal ip vs external ip to web server

13. Question -- Virtual Interfaces (network, multiple IP's) Exist?