- 论坛徽章:
- 0
|
root@test:~# netadm list
TYPE PROFILE STATE
ncp Automatic online
ncu:phys net2 online
ncu:phys net1 online
ncu:phys net0 online
ncu:ip net3 offline
ncu:ip net2 offline*
ncu:ip net1 offline*
ncu:ip net0 offline*
ncp DefaultFixed disabled
loc DefaultFixed offline
loc Automatic offline
loc NoNet online
root@test:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
net0: flags=100001004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,PHYSRUNNING> mtu 1500 index 11
inet 0.0.0.0 netmask ff000000
ether 0:14:4f:f9:ca:a8
net1: flags=100001004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,PHYSRUNNING> mtu 1500 index 10
inet 0.0.0.0 netmask ff000000
ether 0:14:4f:fb:1a:6d
net2: flags=100001004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,PHYSRUNNING> mtu 1500 index 9
inet 0.0.0.0 netmask ff000000
ether 0:14:4f:fa:59:32
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
net0: flags=120002004841<UP,RUNNING,MULTICAST,DHCP,IPv6,PHYSRUNNING> mtu 1500 index 11
inet6 fe80::214:4fff:fef9:caa8/10
ether 0:14:4f:f9:ca:a8
net1: flags=120002004841<UP,RUNNING,MULTICAST,DHCP,IPv6,PHYSRUNNING> mtu 1500 index 10
inet6 fe80::214:4fff:fefb:1a6d/10
ether 0:14:4f:fb:1a:6d
net2: flags=120002004841<UP,RUNNING,MULTICAST,DHCP,IPv6,PHYSRUNNING> mtu 1500 index 9
inet6 fe80::214:4fff:fefa:5932/10
ether 0:14:4f:fa:59:32
root@test:~# netadm enable -p ncp DefaultFixed
Enabling ncp 'DefaultFixed'
root@test:~# netadm list
TYPE PROFILE STATE
ncp Automatic disabled
ncp DefaultFixed online
loc DefaultFixed online
loc Automatic offline
loc NoNet offline
root@test:~# dladm
LINK CLASS MTU STATE OVER
net2 phys 1500 up --
net1 phys 1500 unknown --
net0 phys 1500 unknown --
net3 phys 1500 up --
ldoms-vsw2.vport3 vnic 1500 up net3
ldoms-vsw2.vport1 vnic 1500 up net3
ldoms-vsw2.vport0 vnic 1500 up net3
root@test:~# dladm show-link
LINK CLASS MTU STATE OVER
net2 phys 1500 up --
net1 phys 1500 unknown --
net0 phys 1500 unknown --
net3 phys 1500 up --
ldoms-vsw2.vport3 vnic 1500 up net3
ldoms-vsw2.vport1 vnic 1500 up net3
ldoms-vsw2.vport0 vnic 1500 up net3
root@test:~# ipadm create-ip net0
root@test:~# ipadm show-if
IFNAME CLASS STATE ACTIVE OVER
lo0 loopback ok yes --
net0 ip down no --
root@test:~# ipadm create -T static -a 192.168.1.10/24 net0/v4
Unrecognized subcommand: 'create'
For more info, run: ipadm help
root@test:~# ipadm create-addr -T static -a 192.168.1.10/24 net0/v4
root@test:~# ipadm show-if
IFNAME CLASS STATE ACTIVE OVER
lo0 loopback ok yes --
net0 ip ok yes --
root@test:~# dladm
LINK CLASS MTU STATE OVER
net2 phys 1500 up --
net1 phys 1500 unknown --
net0 phys 1500 unknown --
net3 phys 1500 up --
ldoms-vsw2.vport3 vnic 1500 up net3
ldoms-vsw2.vport1 vnic 1500 up net3
ldoms-vsw2.vport0 vnic 1500 up net3
root@test:~# ipadm show-if
IFNAME CLASS STATE ACTIVE OVER
lo0 loopback ok yes --
net0 ip ok yes --
root@test:~# ipadm show-addr
ADDROBJ TYPE STATE ADDR
lo0/v4 static ok 127.0.0.1/8
net0/v4 static ok 192.168.1.10/24
lo0/v6 static ok ::1/128
root@test:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
net0: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 12
inet 192.168.1.10 netmask ffffff00 broadcast 192.168.1.255
ether 0:14:4f:f9:ca:a8
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
net0: flags=120002000840<RUNNING,MULTICAST,IPv6,PHYSRUNNING> mtu 1500 index 12
inet6 ::/0
ether 0:14:4f:f9:ca:a8
root@test:~# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
net2 Ethernet up 10 full vsw2
net1 Ethernet unknown 0 unknown vsw1
net0 Ethernet unknown 0 unknown vsw0
net3 Ethernet up 10 full usbecm2
root@test:~# dladm
LINK CLASS MTU STATE OVER
net2 phys 1500 up --
net1 phys 1500 unknown --
net0 phys 1500 unknown --
net3 phys 1500 up --
ldoms-vsw2.vport3 vnic 1500 up net3
ldoms-vsw2.vport1 vnic 1500 up net3
ldoms-vsw2.vport0 vnic 1500 up net3
root@test:~# route -p show
No persistent routes are defined
root@test:~# reboot
Aug 19 00:33:00 test reboot: initiated by dbj on /dev/console
test console login: updating /platform/sun4v/boot_archive
syncing file systems... done
rebooting...
Resetting...
NOTICE: Entering OpenBoot.
NOTICE: Fetching Guest MD from HV.
NOTICE: Starting additional cpus.
NOTICE: Initializing LDC services.
NOTICE: Probing PCI devices.
NOTICE: Probing USB devices.
NOTICE: Finished USB probing.
NOTICE: Finished PCI probing.
SPARC S7-2, No Keyboard
Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
OpenBoot 4.40.2, 16.0000 GB memory installed, Serial #112407202.
Ethernet address 0:10:e0:b3:32:a2, Host ID: 86b332a2.
Boot device: /pci@302/pci@2/pci@0/pci@14/LSI,sas@0/disk@w5000cca02f217215,0:a File and args:
SunOS Release 5.11 Version 11.3 64-bit
Copyright (c) 1983, 2015, Oracle and/or its affiliates. All rights reserved.
WARNING: vsw0:Unable to setup switching
WARNING: vsw1:Unable to setup switching
Hostname: test
Aug 19 00:35:43 test sendmail[709]: My unqualified host name (test) unknown; sleeping for retry
test console login: root
Password:
Aug 19 00:36:08 test login: ROOT LOGIN /dev/console
Oracle Corporation SunOS 5.11 11.3 September 2015
root@test:~# bash
root@test:~# ifconfig -a
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
net0: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 3
inet 192.168.1.10 netmask ffffff00 broadcast 192.168.1.255
ether 0:14:4f:f9:ca:a8
net3: flags=100001000943<UP,BROADCAST,RUNNING,PROMISC,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 2
inet 169.254.182.77 netmask ffffff00 broadcast 169.254.182.255
ether 2:21:28:57:47:17
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
inet6 ::1/128
net0: flags=120002000840<RUNNING,MULTICAST,IPv6,PHYSRUNNING> mtu 1500 index 3
inet6 ::/0
ether 0:14:4f:f9:ca:a8
net3: flags=120002000940<RUNNING,PROMISC,MULTICAST,IPv6,PHYSRUNNING> mtu 1500 index 2
inet6 ::/0
ether 2:21:28:57:47:17
root@test:~# Aug 19 00:36:43 test sendmail[709]: unable to qualify my own domain name (test) -- using short name
Aug 19 00:36:43 test sendmail[709]: [ID 702911 mail.alert] unable to qualify my own domain name (test) -- using short name
root@test:~#
root@test:~# ping 192.168.1.2
^C
root@test:~#
有人帮忙看看吗?物理上都好的!!!!注意红线部分
|
|