Return to the defaultfixed ncp by typing in the

This preview shows page 115 - 120 out of 147 pages.

Return to the DefaultFixed ncp by typing in the following command: # netadm enable p ncp DefaultFixed Now that we’ve gone back to the manual network profile, let’s look at our interfaces again and see what’s happened.
Oracle Solaris 11.1 Hands On Lab For Oracle employees and authorized partners only. Do not distribute to third parties. © 2011 Oracle Corporation Page 116 of 147 # dladm show-phys # dladm show-link # ipadm show-if # ipadm show-addr None of the interfaces should be configured. Now we have some work to do. 5.4 Manual network configuration In the last lab we switched the NCP into DefaultFixed. Now we can start doing some manual network configuration. On a machine with multiple physical networks, you can use dladm to determine how network interface names are mapped to physical interfaces. Oracle Solaris uses the concept of ‘vanity names’ to apply to the underlying links to avoid random changes resulting from physical interface additions and subtractions. # dladm show-phys
Oracle Solaris 11.1 Hands On Lab For Oracle employees and authorized partners only. Do not distribute to third parties. © 2011 Oracle Corporation Page 117 of 147 The ipadm command is used to manually configure IP interfaces and addresses. For example, a static IPv4 interface is created as follows. Then use the ipadm show-if command to verify creation of the interface. # ipadm create-ip net0 # ipadm show-if Now let’s assign an IP address to our interface with the following command: # ipadm create-addr T static a local=10.9.8.7/24 \ net0/v4static # ipadm show-addr The -T option can be used to specify three address types: static , dhcp , and addrconf ( for auto-configured IPv6 addresses ). In this example, the system is configured with a static IPv4 address. Use the same syntax to specify a static IPv6 address with our second virtual interface. # ipadm create-ip net1 # ipadm create-addr T addrconf net1/v6auto # ipadm show-if # ipadm show-addr
Oracle Solaris 11.1 Hands On Lab For Oracle employees and authorized partners only. Do not distribute to third parties. © 2011 Oracle Corporation Page 118 of 147 Now let’s create an ipv4 dhcp interface using the same commands and use our 3 rd interface. # ipadm create-ip net2 # ipadm create-addr T dhcp net2/v4auto # ipadm show-if # ipadm show-addr If an interface has already been configured and you want to change the address or type, you will need to remove it and then re-add it. Execute the following commands to change the address on net0 from 10.9.8.7 to 10.9.8.4. Then type the ipadm show-addr command to verify your changes. # ipadm delete-ip net0 # ipadm create-ip net0 # ipadm create-addr T static a local=10.9.8.4/24 \ net0/v4static # ipadm show-addr
Oracle Solaris 11.1 Hands On Lab For Oracle employees and authorized partners only. Do not distribute to third parties. © 2011 Oracle Corporation Page 119 of 147 5.5 Displaying and configuring link interfaces when in manual mode When you perform a fresh installation, all datalinks are automatically assigned generic names by using a net0 , net1 , and net N naming convention, depending on the total number of network devices on a system. After installing, you can use different datalink names.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture