Enabling Networking Between the Control/Service domain and Other Domains

How do I enable networking between the control/service domain and other domains?
[87 byte] By [Asa_Rombergera] at [2007-11-26 22:28:02]
# 1

By default, networking between the control/service domain and other

domains in the system is disabled. To enable this, the virtual switch

device should be configured as a network device. The virtual switch can

either replace the underlying physical device (e1000g0 in this example)

as the primary interface or be configured as an additional network

interface in the domain.

<P>

Note: Perform the following configuration steps from the domain's

console, as the procedure could temporarily disrupt network

connectivity to the domain.

<P>

To Configure the Virtual Switch as the Primary

<P>

1. Print out the addressing information for all interfaces.

<P>

primary# ifconfig -a

<P>

2. Plumb the virtual switch. In this example, vsw0 is the virtual

switch being configured.

<P>

primary# ifconfig vsw0 plumb

<P>

3. (Optional) To obtain the list of all virtual switch instances in a

domain, you can list them by doing the following:

<P>

primary# /usr/sbin/dladm show-link | grep vsw

vsw0 type: non-vlan mtu: 1500 device: vsw0

<P>

4. Unplumb the physical network device assigned to the virtual switch

(net-dev), which is e1000g0 in this example.

<P>

primary# ifconfig e1000g0 down unplumb

<P>

5. To migrate properties of the physical network device (e1000g0) to

the virtual switch (vsw0) device, do one of the following:

<P>

- If networking is configured using a static IP address, reuse the IP

address and netmask of e1000g0 for vsw0.

<P>

primary# ifconfig vsw0 IP_of_e1000g0 netmask netmask_of_e1000g0 broadcast + up

<P>

- If networking is configured using DHCP, enable DHCP for vsw0.

<P>

primary# ifconfig vsw0 dhcp start

<P>

6. Make the required configuration file modifications to make this

change permanent.

<P>

primary# mv /etc/hostname.e1000g0 /etc/hostname.vsw0

primary# mv /etc/dhcp.e1000g0 /etc/dhcp.vsw0

<P>

Note: If necessary, you can also configure the virtual switch as well

as the physical network device. In this case, plumb the virtual switch

as in Step 2, and do not unplumb the physical device (skip Step 4). The

virtual switch must then be configured with either a static IP address

or obtain a dynamic IP address from a DHCP server.

Asa_Rombergera at 2007-7-10 11:30:58 > top of Java-index,Administration Tools,Logical Domains for CoolThreads Servers...
# 2

Cannot get the ldom to function correctly after using the above. I have followed the Beginners Guide to LDOMS. I get this message.

# ldm list

Name StateFlagsConsVCPU MemoryUtil Uptime

primary active-t-cvSP4512M36% 5m

ld-uxlbsn12active-t50006512M100% 15m

# telnet localhost 5000

Trying 127.0.0.1...

telnet: connect to address 127.0.0.1: Connection refused

Trying ::1...

telnet: Unable to connect to remote host: Network is unreachable

#

jawquina at 2007-7-10 11:30:58 > top of Java-index,Administration Tools,Logical Domains for CoolThreads Servers...
# 3

Do you have vntsd enabled? It is needed for virtual terminals.

# svcs -l vntsd

fmri svc:/ldoms/vntsd:default

name virtual network terminal server

enabledtrue

stateonline

next_statenone

state_timeMon Jul 31 13:59:25 2000

logfile/var/svc/log/ldoms-vntsd:default.log

restartersvc:/system/svc/restarter:default

contract_id 57

dependencyoptional_all/error svc:/milestone/network (online)

dependencyoptional_all/none svc:/system/system-log (online)

Asa_Rombergera at 2007-7-10 11:30:59 > top of Java-index,Administration Tools,Logical Domains for CoolThreads Servers...