Unix研究——Solaris 10修改主机IP和主

  

<强> Unix研究——Solaris 10修改主机IP和主机名

<强>,,

<强>

(root@solaris186:/) #, cat /etc/主机   #,Internet  host 表   ::1,,,,,localhost ,,,,,,   127.0.0.1 ,,,,,, localhost ,,,,,,   192.168.8.11 ,,, solaris186 ,,,, loghost      (root@solaris186:/) #主机名   solaris186      (root@solaris186:/) #, vi /etc/主机   #,Internet  host 表   #   ::1,,,,localhost   127.0.0.1 ,,,,, localhost   192.168.8.11 ,,, node1 ,, loghost

(root@solaris186:/) #, ifconfig  a   lo0:=2001000849 & lt;旗帜,回环,跑步,多播,IPv4, VIRTUAL>, mtu  8232年,index  1   ,,,,,,,inet  127.0.0.1  netmask  ff000000    e1000g0:=1000843 & lt;旗帜,广播,跑步,多播,IPv4>, mtu  1500年,index  2   ,,,,,,,inet  192.168.8.11  netmask  ffffff00  broadcast  192.168.8.255   ,,,,,,,ether  8:0:27:28: b1:8c

(root@solaris186:/) #, cat /etc/hostname.e1000g0    solaris186      (root@solaris186:/) #, vi /etc/hostname.e1000g0 ,   node1      (root@solaris186:/) #, cat /etc/hostname.e1000g0    node1

(root@solaris186:/) #, cat /etc/子网掩码   #   #,从而netmasks  file  associates  Internet  Protocol  (IP)地址   #,masks  with  IP  network 数字。   #,   #,,,,,,,network-number 子网掩码   #   #,从而term  network-number  refers 用a  number  obtained 得到,Internet 网络   #,方式、中心。   #   #,Both 从而,network-number 以及,netmasks  specified 在断开连接   #,“decimal 点”,符号,,如:   #   #,,,,,,,,,,,,,,,128.32.0.0  255.255.255.0   #   192.168.8.0 ,,,, 255.255.255.0

<强>

(root@solaris186:/) #, vi /etc/defaultrouter   192.168.8.1      (root@solaris186:/) #, cat /etc/defaultrouter    192.168.8.1      (root@solaris186:/) #, netstat  nr   Routing 表:IPv4   Destination 才能,,,,,,,,,,,Gateway ,,,,,,,,,, Flags , Ref ,,,, Use ,,,, Interface    - - - - - - - - - - - - - - - - - - - - - -,- - - - - - - - - - - - - - - - - - - - - -,- - - - -安康;——安康;- - - - - - - - - - -,- - - - - - - - - -安康;   192.168.8.0 ,,,,,,,,, 192.168.8.11 ,,,,,,,, U ,,,,,,,, 1,,,,,,,,,, 1, e1000g0 ,,   224.0.0.0 ,,,,,,,,,,, 192.168.8.11 ,,,,,,,, U ,,,,,,,, 1,,,,,,,,,, 0, e1000g0 ,,   127.0.0.1 ,,,,,,,,,,, 127.0.0.1 ,,,,,,,,,,, UH ,,,,,,, 1,,,,,,,,, 50, lo0

<强>

<强>

<强>

<强>

<强>

<强>

<强>

(root@solaris186:/) #, cat /etc/主机   #,Internet  host 表   ::1,,,,,localhost ,,,,,,   127.0.0.1 ,,,,,, localhost ,,,,,,   192.168.8.11 ,,, node1 ,,,,, loghost

(root@solaris186:/) #, cat /etc/hostname.e1000g0    solaris186      (root@solaris186:/) #, vi /etc/hostname.e1000g0 ,   node1      (root@solaris186:/) #, cat /etc/hostname.e1000g0    null   null   null   null   null   null   null   null   null   null   null   null   null   null

Unix研究——Solaris 10修改主机IP和主