Solaris10修改主机名和IP地址-古蔺大橙子建站
RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
Solaris10修改主机名和IP地址

一、修改主机ip

10年积累的网站建设、做网站经验,可以快速应对客户对网站的新想法和需求。提供各种问题对应的解决方案。让选择我们的客户得到更好、更有力的网络服务。我虽然不认识你,你也不认识我。但先网站设计后付款的网站建设流程,更有林州免费网站建设让你可以放心的选择与我们合作。

1、配置hosts

root@solaris10:/ # cat /etc/hosts

#

# Internet host table

#

::1             localhost

127.0.0.1       localhost

172.16.251.130  solaris10       loghost

 

2、查看网卡信息

root@solaris10:/ # ifconfig -a

lo0: flags=2001000849 mtu 8232 index 1

        inet 127.0.0.1 netmask ff000000

e1000g0: flags=1004843 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、修改网关信息

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      

 

二、修改主机名

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修改主机名和IP地址
网页链接:http://scgulin.cn/article/ipgjgp.html