网创优客建站品牌官网
为成都网站建设公司企业提供高品质网站建设
热线:028-86922220
成都专业网站建设公司

定制建站费用3500元

符合中小企业对网站设计、功能常规化式的企业展示型网站建设

成都品牌网站建设

品牌网站建设费用6000元

本套餐主要针对企业品牌型网站、中高端设计、前端互动体验...

成都商城网站建设

商城网站建设费用8000元

商城网站建设因基本功能的需求不同费用上面也有很大的差别...

成都微信网站建设

手机微信网站建站3000元

手机微信网站开发、微信官网、微信商城网站...

建站知识

当前位置:首页 > 建站知识

Solaris10修改主机名和IP地址-创新互联

一、修改主机ip

成都创新互联公司专注于企业网络营销推广、网站重做改版、扶绥网站定制设计、自适应品牌网站建设、H5网站设计购物商城网站建设、集团公司官网建设、外贸营销网站建设、高端网站制作、响应式网页设计等建站业务,价格优惠性价比高,为扶绥等各大城市提供网站开发制作服务。

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

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


网页题目:Solaris10修改主机名和IP地址-创新互联
网站URL:http://bjjierui.cn/article/dodppi.html

其他资讯