Solaris 11 kurduk ve kurulumda dhcp servisini kullanıyorsak, sonrasında statik ip kullanımına geçmek istiyorsak yapmamız gerekenler;
netadm enable -p ncp DefaultFixed
netadm list
ipadm create-ip net0
ipadm create-addr -T static -a 10.0.1.220/24 net0/v4
route -p add default 10.0.1.49
ipadm show-addr
root@solaris-11:~# svccfg -s system/name-service/switch
svc:/system/name-service/switch> setprop config/host = astring: "files dns nis"
svc:/system/name-service/switch> listprop config/host
config/host astring "files dns nis"
svc:/system/name-service/switch> quit
root@solaris-11:~# svcadm refresh name-service/switch
root@solaris-11:~# ping google.com
google.com is alive
http://docs.oracle.com/cd/E36784_01/html/E36831/dnsref-36.html#scrolltoc
http://docs.oracle.com/cd/E36784_01/html/E36831/c8switch-2.html#scrolltoc
Detaylı bilgiyi aşağıdaki linkten bulabilirsiniz.
http://www.oracle.com/technetwork/articles/servers-storage-admin/s11-network-config-1632927.html
netadm enable -p ncp DefaultFixed
netadm list
ipadm create-ip net0
ipadm create-addr -T static -a 10.0.1.220/24 net0/v4
route -p add default 10.0.1.49
ipadm show-addr
root@solaris-11:~# svccfg -s system/name-service/switch
svc:/system/name-service/switch> setprop config/host = astring: "files dns nis"
svc:/system/name-service/switch> listprop config/host
config/host astring "files dns nis"
svc:/system/name-service/switch> quit
root@solaris-11:~# svcadm refresh name-service/switch
root@solaris-11:~# ping google.com
google.com is alive
http://docs.oracle.com/cd/E36784_01/html/E36831/dnsref-36.html#scrolltoc
http://docs.oracle.com/cd/E36784_01/html/E36831/c8switch-2.html#scrolltoc
Hepsi bukadar.
http://www.oracle.com/technetwork/articles/servers-storage-admin/s11-network-config-1632927.html
Yorumlar
Yorum Gönder