linux手动配置网络

1
2
3
4
5
6
7
8
9
10
11
12
13
/etc/resolv.conf  # dns nameserver 192.168.245.2

ifconfig eth0 up
ifconfig eth0 192.168.245.128 netmask 255.255.255.0 broadcast 192.168.245.255
ifconfig eth0 #check ip

route add default gw 192.168.245.2 eth0
route -n # check route

host only net set, no route
vmware edit--network editor,on top list, click vmnet1, click right bottom dhch setting
find the ip range,netmask,broadcast
ifconfig eth0 192.168.31.128 netmask 255.255.255.0 broadcast 192.168.31.255

转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 hui740024906@163.com

文章标题:linux手动配置网络

文章字数:79

本文作者:qianggetaba

发布时间:2019-09-04, 18:22:55

最后更新:2019-09-09, 10:01:58

原始链接:https://qianggetaba.com/2019/09/04/linux-manual-dhcp/

版权声明: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。

目录
×

喜欢就点赞,疼爱就打赏