Toybrick
标题:
怎么设置静态网址
[打印本页]
作者:
jiajia1990
时间:
2019-8-21 09:41
标题:
怎么设置静态网址
在公司电脑没有路由器,只能直接接网线,怎么设置静态网址?
作者:
jefferyzhang
时间:
2019-8-23 08:25
# vim /etc/sysconfig/network-scripts/ifcfg-eth0
1 # Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE]
2 DEVICE=eth0
3 HWADDR=E8:EE:65:35:3A:63
4 ONBOOT=yes
5 TYPE=Ethernet
6 BOOTPROTO=static
7 IPV6INIT=no
8 NAME=eth0
9 USERCTL=yes
10 PEERDNS=yes
11 NM_CONTROLLED=yes
12 NETMASK=255.255.254.0
13 IPADDR=192.168.1.135
14 DNS1=210.38.240.33//DNS
15 GATEWAY=192.168.1.1
# /etc/init.d/network restart
桌面系统的话直接去设置里设置就是
欢迎光临 Toybrick (https://t.rock-chips.com/)
Powered by Discuz! X3.3