Firstly, I presume the 'n' in hostnamen.e1000g2 is a typo in your post? If not, it shouldn't be there.
What exactly do you have in that file? It should just be a hostname (except when configuring IPMP or similar), and that hostname should be in /etc/hosts associated with the correct IP address.
is the 192.168.1.15 the same subnet that your primary interface is on?
I am taking a long shot by assuming that you are attempting to add a second interface since you did not use the e1000g0 interface in your initial post.
If you are adding a second interface on a different subnet, you probably will have to add an entry for the new subnet in the /etc/netmasks.
If you are not trying to add a second interface, but instead the primary interface your server runs on, than again make sure you /etc/netmasks is correct and also the /etc/defaulrouter which houses your gateway.
I'm just reminding you about these files since you did not mention them in your initial post as to if you set them.
/etc/netmasks example:
192.168.1.0 255.255.255.0 (assuming class c)
192.168.99.0 255.255.255.0
As the others have suggested; /etc/hosts, etc/defaultrouter and /etc/netmasks needs to be configured correctly for this to work and your /etc/hostname.e1000g2 file should contain just the hostname you want to use for that interface, with a corresponding entry in /etc/hosts and also /etc/inet/ipnodes if solaris10. You may find that this is just a sym link to /etc/hosts anyway.
1)are you sure you are using a static IP for 192.168.1.115, I notice you are also using DHCP.
2) after you do: ifconfig e1000g2 192.168.1.115 up, do you verify by doing a ifconfig -a, does your addition ever make into the configuration?
will this work for you,
#ifconfig e1000g2 plumb
#ifconfig e1000g2 192.168.1.115 mtu 1500 netmask 255.255.255.0 broadcast 192.168.1.255 up
you can try it w/o the mtu also.
#ifconfig e1000g2 192.168.1.115 netmask 255.255.255.0 broadcast 192.168.1.255 up
Also check /etc/inet/ipnodes, is it in sync in regards to ip address and hostnames. it has to be in sync with the /etc/hosts and /etc/hostname.* (meaning, are the ip's correct)
if this does not work, take Annihilannic's advise and check your messages file.
also as anotheralan stated, your netmask file is wrong if what you posted is actually what you have on the server. It should look as he stated.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.