1.从自动网络配置模式转换为手动配置模式
验证NCP
netadm list
netadm enable -p ncp DefaultFixed
2.确认DefaultFixed模式可用
netadm list
netadm: DefaultFixed NCP is enabled;
automatic network management is not available.
netadm list' is only supported when automatic network management is active.
3.确认要配置的接口
# dladm show-phys
4.配置net0
# ipadm create-ip net0
# ipadm create-addr -T static -a 192.168.56.200 net0/v4
# ipadm show-addr
# netstat -rn
5.配置网关
# route -p add default 12.34.56.1
阅读(1230) | 评论(0) | 转发(0) |