您的位置:首页 > 理论基础 > 计算机网络

关于LINUX修改网络IP

2014-01-03 00:00 260 查看
摘要: LINUX修改网络IP

FreeBSD下如何更改IP
============================================================
1、进入 /etc/rc.conf 文件
2、修改 ifconfig_lnc0="inet xxx.xxx.xxx.xxx netmask 255.255.255.0"
别忘了defaultrouter="xxx.xxx.xxx.xxx (gateway ip address)"
3、重启网卡
/etc/init.d/networking restart
或者
ifconfig rl0 down
ifconfig rl0 up
如果想一次性的话,只要直接输入 ifconfig lnc0 xxx.xxx.xxx.xxx netmask 255.255.255.0
即时生效
重启后失效!!
图形界面配置IP
sysinstall --> configure --> Networking -->interfaces -->相应网卡名
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  LINUX修改网络IP