Solaris virtual interfaces

From Brandonhutchinson.com

(Difference between revisions)
Jump to: navigation, search
(New page: In this example, I create virtual interface '''bge0:1''' with hostname ''host'' and IP 10.209.173.48. The interface is also configured to initialize after reboots. The /24 netmask for thi...)
Current revision (14:40, 19 March 2008) (edit) (undo)
m
 
(One intermediate revision not shown.)
Line 5: Line 5:
# '''ifconfig bge0:1 plumb'''
# '''ifconfig bge0:1 plumb'''
-
# ifconfig bge0:1 10.209.173.48 netmask + broadcast +
+
# '''ifconfig bge0:1 10.209.173.48 netmask + broadcast + up'''
Setting netmask of bge0:1 to 255.255.255.0
Setting netmask of bge0:1 to 255.255.255.0
Line 11: Line 11:
10.209.173.48 ''host''
10.209.173.48 ''host''
-
Add the following entry to ''/etc/hostname.bge0:1'' for the interface to initialize after reboots.
+
Add the following entry to ''/etc/hostname.bge0:1'' for the interface to initialize after a reboot.
''host''
''host''

Current revision

In this example, I create virtual interface bge0:1 with hostname host and IP 10.209.173.48. The interface is also configured to initialize after reboots.

The /24 netmask for this network already exists in /etc/netmasks:

10.209.173.0    255.255.255.0
# ifconfig bge0:1 plumb
# ifconfig bge0:1 10.209.173.48 netmask + broadcast + up
Setting netmask of bge0:1 to 255.255.255.0

Add the following to /etc/hosts:

10.209.173.48 host

Add the following entry to /etc/hostname.bge0:1 for the interface to initialize after a reboot.

host

Links

Personal tools