gangwu 发表于 2013-2-7 13:05:13

Solaris配置IP、DNS上外网

1、vi /etc/hosts  设置IP地址
添加 59.175.233.141 hb-01 loghost
IP地址、主机名、loghost
 
2、vi /etc/inet/ipnodes 设置IP地址
添加 59.175.233.141 hb-01 loghost
 
3、vi /etc/netmasks 设置网络掩码
添加 59.175.233.0    255.255.255.0
 
4、vi /etc/defaultrouter 设置默认路由
添加 59.175.233.129
注:此处只需要添加网关路由地址
 
5、vi /etc/resolv.conf 设置dns
添加 nameserver 202.103.24.68
 
6、vi  /etc/nsswitch.conf
修改 hosts:      files  dns
注:添加dns到尾部
 
重启应该可以上网了。
页: [1]
查看完整版本: Solaris配置IP、DNS上外网