Solaris11 手动配置静态IP地址

Solaris11手动配置静态IP地址方法

1、查看网卡信息:

root@solts01:~# netadm list -x
TYPE PROFILE STATE AUXILIARY STATE
ncp Automatic online active
… …
ncu:phys net0 online interface/link is up
… …
root@solts01:~# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
… …
net0 Ethernet up 1000 full e1000g0

2、创建网卡IP接口:

root@solts01:~# ipadm create-ip net0

3、配置网卡静态IP地址:

root@solts01:~# ipadm create-addr -T static -a local=192.168.5.105/24 net0/v4

4、查看网卡IP地址:

root@solts01:~# ipadm show-addr
ADDROBJ TYPE STATE ADDR
… …
net0/v4 static ok 192.168.5.105/24

开启root账号ssh远程
1、修改配置文件:

root@solts01:~# grep -i RootLogin /etc/ssh/sshd_config
PermitRootLogin yes

扫描二维码关注公众号,回复: 3762345 查看本文章

2、重启ssh服务:

root@solts01:~# svcadm restart ssh

然后就可以直接通过xshell等远程工具远程了。

猜你喜欢

转载自blog.csdn.net/li1121567428/article/details/83539029