Solaris 10 Kalıcı IP Ekleme
Solaris 10'a statik ip tanımlaması veya yeni bir Ethernet arayüzünü etkinleştirip ip tanımlaması yapmak için, aşağıda bulunan dosyaların düzenlenmesi gerekmektedir. Dosyalar: /etc/hostname.nge2 (bizim makinemizde 3. ethernetimiz) /etc/hosts (ip adres tanımlaması yapılan yer) /etc/netmasks (netmask tanımlamasının yapıldığı bölüm) /etc/resolv.conf (dns server bilgileri) /etc/defaultrouter (default gateway bilgisi) /etc/inet/ipnodes
Not: Bir Ethernet portunun aktivasyonu için öncelikle /etc dizini altında hostname.ngex şeklinde Ethernet portunu belirtmeniz gerekir. Örnek konfigürasyon için /etc/hostname.nge0 yada Ethernet türüne göre /etc/hostname.xxx dosyasına bakılmalıdır.
Örnek /etc/hostname.xxx dosyası
# cat hostname.nge2 hi23casrv
Örnek /etc/hosts dosyası
# cat /etc/hosts # # Internet host table # ::1 localhost 127.0.0.1 localhost 192.168.6.23 hi23casrv 192.168.1.10 unknown # Added by DHCP
Örnek /etc/netmasks dosyası
# cat /etc/netmasks # # The netmasks file associates Internet Protocol (IP) address # masks with IP network numbers. # # network-number netmask # # The term network-number refers to a number obtained from the Internet Network # Information Center. # # Both the network-number and the netmasks are specified in # "decimal dot" notation, e.g: # # 128.32.0.0 255.255.255.0 # 192.168.6.0 255.255.255.0
Örnek /etc/resolv.conf
# cat /etc/resolv.conf search abc.local domain abc.local nameserver 192.168.1.1
/etc/defaultrouter örneğimizde ikinci bir Ethernet adresi olduğundan default route girmiyoruz.
Örnek /etc/inet/ipnodes /etc/hostdaki aynı bilgiler girilecek.
# cat /etc/inet/ipnodes # # Internet host table # ::1 localhost 127.0.0.1 localhost 192.168.6.23 hi23casrv 192.168.1.10 unknown # Added by DHCP
Sonrasında yeniden başlatıp durumu kontrol etmekte fayda var. ... ....