I'm going to give an example of configuring a GigaSwift network interface card in a Sun Blade workstation. For this example, you will have to reboot your box, but you can configure the card online, too.
# vi /etc/hosts
127.0.0.1 localhost
168.123.xxx.xxx esofthub (my workstation's hostname)
:wq! (save and quit)
# vi /etc/hostname.ce0
esofthub (should be the hostname of your workstation)
:wq! (save and quit)
# vi /etc/netmasks
168.123.xxx.xxx 255.255.255.xxx
:wq! (save and quit)
# init 6 (reboots your workstation)
6 comments:
Just a quick tip, which you probably already know. If you do not want to reboot, you can do the following:
# ifconfig ce0 plumb
# ifconfig ce0 168.123.xxx.xxx 255.255.255.xxx up
I only mention this because I have an aversion to rebooting computers. That is probably why I like Unix so much. Have a good one.
Allen,
Yes, I'm quite familiar with your tip. But all the same, I do appreciate your contribution. Please continue doing so in the future.
Thank you for visiting.
Also, if the appropriate network is already set in /etc/netmasks, the following syntax may be used to have the `ifconfig` command automatically calculate the netmask and broadcast:
ifconfig rf0 plumb
ifconfig rf0 10.1.2.3 netmask + broadcast + up
Note that /etc/netmasks "is a hack" according to Solaris kernel engineers; CIDR notation should be used instead. And indeed, CIDR notation *must* be used when configuring zones on Solaris 10 and on if the zones are to have a different netmask. So:
ifconfig gani0 plumb
ifconfig gani0 10.1.2.3/16 broadcast + up
thanks ux-admin
That's good info. What if I wanted to exclude a server or two that are constantly being ping'd on the network. I know that it's being broadcast to, but is there an exclusion list that I can put in place for 1 or 2 servers that don't want to be bothered? -Jason
Jason,
Have you tried using a router's Access Control List to prevent pinging to your servers?
Roy
Post a Comment