LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Solaris 10 SPARC - 2 NIC (http://www.linuxquestions.org/questions/solaris-opensolaris-20/solaris-10-sparc-2-nic-648511/)

czezz 06-11-2008 03:38 AM

Solaris 10 SPARC - 2 NIC
 
I have Solaris with 2 NICs.
It was extremaly easy to set up 1st one - just edited these files:
Code:

/etc/inet/ipnodes
/etc/netmasks
/etc/hosts
/etc/hostname.ce0

address assigned to ce0:
ip: 10.2.11.4
mask: 255255255.224
gateway: no gateway

Now, I need to set up 2nd NIC - ce1
ip: 10.224.10.5
netmask: 255.255.255.248
gateway: 10.224.10.1

I know I need to ad entry with new ip to /etc/inet/ipnodes create /etc/hostname.ce1 /etc/defaultrouter - but dont know what to put to
/etc/netmasks ???

So far it contain only this:
Code:

10.2.11.0    255.255.255.224
Should I just add in another line:
Code:

10.224.10.0    255.255.255.248

eggixyz 06-11-2008 10:11 PM

Hey There,

Yes, you can just add another line for the new netmask. YOu don't need to specify a NIC in there.

Also, if you don't want Solaris to do what it does by default with two NICS (using your machine as a router), also touch

/etc/notrouter

Best wishes,

Mike


All times are GMT -5. The time now is 02:22 AM.