设置solaris的网络参数

一、设置主机名 

The first file you need to configure when running in local files mode is /etc/nodename. This file needs to have your computer's host name (also called a node name) in it. Your computer's name should be the only entry in this file. When typing in your computer's name, remember that Solaris is case sensitive.

Next, you will need to create a host name interface file. The name of this file will be /etc/ hostname.interface. In the filename, the interface variable is replaced by the interface name of your primary network connection. For example, if your primary network interface is le0, the filename would be /etc/hostname.le0. If you have multiple network connections, you will have multiple /etc/hostname.interface files, one for each network connection. The only entry inside the file will be your host name, just as in /etc/nodename. You can also substitute the interface IP address instead of a host name in this file.

After creating or configuring /etc/hostname.interface, you will need to set up the /etc/inet/hosts file. This file is also known as the hosts database. This file needs to contain the IP address and corresponding host name for every computer on your network. When you attempt to access another computer on your network by host name, your computer will check the hosts database for the computer's name and then attempt to contact the computer by its IP address.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值