View Single Post

   
  #7 (permalink)  
Old 01-16-2008, 10:20 AM
Raqueeb Hassan
 
Posts: n/a
Default Re: Moving IP address information from bge0 to bge1: Solaris 8

Thanks for the reply. It worked. I had extra blank line in /etc/
hostname.bge1 and /etc/inet/netmasks files.

> > bge1: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
> > inet 10.1.1.2 netmask ff000000 broadcast 10.255.255.255
> > ether x:x:xx:xx:xx:xx

>
> So, now you're using a /8 netmask on that network. What's the *right*
> netmask?


I'm employing 254 hosts in this subnet, and that should be a
10.1.1.0/24 network with netmask 255.255.255.0. Thinking that network
as Class A (private), I used the default netmask 255.255.0.0
previously. Now, both works.

> Note that this interface isn't marked "up." What exactly do you have
> in /etc/hostname.bge1?
>
> It's almost certainly not going to run correctly if the netmask issue
> isn't resolved and the interface isn't enabled (marked "up").


# cat /etc/netmasks
10.1.1.0 255.255.0.0

<snip>

> > # netstat -nr

>
> > Routing Table: IPv4
> > Destination Gateway Flags Ref Use Interface
> > -------------------- -------------------- ----- ----- ------ ---------
> > 192.168.100.0 192.168.100.3 U 1 0 bge2
> > 127.0.0.1 127.0.0.1 UH 3 6 lo0

>
> > Here is a problem. It doesn't say anything about network 10.1.1.0 and
> > how that should be routed. How do I fix that?

>
> It's not there because bge1 has been marked "down" administratively.


Thanks for that. I didn't mark that previously.

> Most likely, it's due to a bad entry in /etc/hostname.bge1. Probably,
> you have multiple lines in that file rather than a single line.


You are right here. Deleting the blank lines made it work.

# ifconfig -a
bge2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500
index 3
inet 10.1.1.2 netmask ff000000 broadcast 10.255.255.255
ether x:x:xx:xx:xx:xx

> How many addresses are you using in that address space?
>
> Remember that the netmask is logically "anded" with an IP address to
> determine whether the address is "local" or not. There are potentially
> 2^24-1 addresses in that space. If you are using 10.1.1.0 through
> 10.1.1.255 then your netmask would be 255.255.255.0. Since that address
> space is designated as an RFC-1918 private network you could assign all
> 2^24-1 addresses and use 255.0.0.0 as a netmask if you wish.


Thanks for that.


Thanks all of you once again.


--
Raqueeb Hassan
Bangladesh

Reply With Quote