netmask problem!!!!!!!!!!!!!

hi,

i am trying to configure new NIC on my machine "solaris 10 x86" and i did the following:

- plumb the new NIC

- ifconfig e1000g1 192.168.200.202 netmask 255.255.255.248 up

- edited the /etc/hosts

- edited the /etc/nodename

- edited the /etc/netmask

i did add "192.168.200.202255.255.255.248" to netmask

- reboot -- -r

everything went well except the netmask, when i run ifconfig -a i got the following:

e1000g1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 5

inet 192.168.200.202 netmask ffffff00 broadcast 192.168.200.255

ether 0:14:4f:40:61:5d

as you see that the netmask is 255.255.255.0 " ffffff00 which is not the one i did assing

is there any additional file to be edit?

what should i do to make the netmask 255.255.255.248 ?

thanks.

[874 byte] By [astroveny.suna] at [2007-11-26 19:16:35]
# 1

/etc/inet/netmasks likes for the first entry to be the base network address, not an IP in the middle of the netblock.

If you're not sure what that information is, google for "network calculators" and use that to find your base network address.

For example, I went to http://www.subnetmask.info/ and keyed in your information into the "Network/Node Calculator" section.

It tells me that your base network address is 192.168.200.200 and broadcast is 192.168.200.207.

So in /etc/inet/netmasks, you should have:

192.168.200.200 255.255.255.248

A comment on the side.. if you're never going to use ipv6, symlink /etc/inet/nodename to point at /etc/inet/hosts. That'll save you some grief in the future.

WRWindsora at 2007-7-9 21:29:47 > top of Java-index,General,Network Configurations...
# 2

> A comment on the side.. if you're never going to use

> ipv6, symlink /etc/inet/nodename to point at

> /etc/inet/hosts. That'll save you some grief in the

> future.

I hope you meant /etc/ipnodes and not nodemane.

Either way it's best to leave the base install alone and modify the system using Sun's procedures. Then if there is an issue Sun won't say your system is misconfigured and blow you off.

alan

alan.paea at 2007-7-9 21:29:47 > top of Java-index,General,Network Configurations...
# 3
/etc/inet/ipnodes.In this case, it's probably just fine. The next version of Solaris will do something similar.-- Darren
Darren_Dunhama at 2007-7-9 21:29:47 > top of Java-index,General,Network Configurations...
# 4
"Either way it's best to leave the base install alone and modify the system using Sun's procedures."heh, anyone remember admintool?
WRWindsora at 2007-7-9 21:29:47 > top of Java-index,General,Network Configurations...
# 5
> heh, anyone remember admintool?yup
alan.paea at 2007-7-9 21:29:47 > top of Java-index,General,Network Configurations...