Solaris10修改主機(jī)名和IP地址

一、修改主機(jī)ip

10年積累的網(wǎng)站建設(shè)、做網(wǎng)站經(jīng)驗(yàn),可以快速應(yīng)對(duì)客戶對(duì)網(wǎng)站的新想法和需求。提供各種問題對(duì)應(yīng)的解決方案。讓選擇我們的客戶得到更好、更有力的網(wǎng)絡(luò)服務(wù)。我雖然不認(rèn)識(shí)你,你也不認(rèn)識(shí)我。但先網(wǎng)站設(shè)計(jì)后付款的網(wǎng)站建設(shè)流程,更有林州免費(fèi)網(wǎng)站建設(shè)讓你可以放心的選擇與我們合作。

1、配置hosts

root@solaris10:/ # cat /etc/hosts

#

# Internet host table

#

::1             localhost

127.0.0.1       localhost

172.16.251.130  solaris10       loghost

 

2、查看網(wǎng)卡信息

root@solaris10:/ # ifconfig -a

lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1

        inet 127.0.0.1 netmask ff000000

e1000g0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 2

        inet 172.16.251.130 netmask ffffff00 broadcast 172.16.251.255

        ether 0:c:29:44:3b:b9

 

3、修改hostname.e1000g0

root@solaris10:/ # cat /etc/hostname.e1000g0

solaris10

 

4、修改netmask

 

root@solaris10:/ # 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

#

172.16.251.0 255.255.255.0

 

5、修改網(wǎng)關(guān)信息

root@solaris10:/ # cat /etc/defaultrouter

172.16.251.2

 

root@solaris10:/ # netstat -nr

 

Routing Table: IPv4

  Destination           Gateway           Flags  Ref     Use     Interface

-------------------- -------------------- ----- ----- ---------- ---------

default              172.16.251.2         UG        1          0 e1000g0  

172.16.251.0         172.16.251.130       U         1          2 e1000g0  

224.0.0.0            172.16.251.130       U         1          0 e1000g0  

127.0.0.1            127.0.0.1            UH        3         86 lo0      

 

二、修改主機(jī)名

1、配置hosts

root@solaris10:/ # cat /etc/hosts

#

# Internet host table

#

::1             localhost

127.0.0.1       localhost

172.16.251.130  solaris10       loghost

 

2、修改hostname.e1000g0

 

root@solaris10:/ # cat /etc/hostname.e1000g0

solaris10

 

3、修改nodename

root@solaris10:/ # cat /etc/nodename

solaris10

 

4、查看ipnodes

root@solaris10:/ # cat /etc/inet/ipnodes

#

# Internet host table

#

::1             localhost

127.0.0.1       localhost

172.16.251.130  solaris10       loghost

 

文章名稱:Solaris10修改主機(jī)名和IP地址
地址分享:http://muchs.cn/article18/ipgjgp.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供定制網(wǎng)站、品牌網(wǎng)站建設(shè)、Google網(wǎng)站策劃、網(wǎng)站制作、靜態(tài)網(wǎng)站

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都做網(wǎng)站