Static IP address in linux
来源:互联网 发布:中国核潜艇096知乎 编辑:程序博客网 时间:2024/06/05 08:58
How to config static IP address in linux
- Find the GATEWAY
#netstat -rnKernel IP routing tableDestination Gateway Genmask Flags MSS Window irtt Iface0.0.0.0 10.245.36.1 0.0.0.0 UG 0 0 0 eno310.245.36.0 0.0.0.0 255.255.255.0 U 0 0 0 eno3
Gateway in first line is your nearest Gateway.
- Modify your ifcfg-eno3 configuration file.
#vim /etc/sysconfig/network-script/ifcfg-eno3
TYPE=EthernetPROXY_METHOD=noneBROWSER_ONLY=no#BOOTPROTO=dhcpBOOTPROTO=staticDEFROUTE=yesIPV4_FAILURE_FATAL=noIPV6INIT=yesIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_FAILURE_FATAL=noIPV6_ADDR_GEN_MODE=stable-privacyNAME=eno3UUID=159a0c7c-4dfb-43ac-a9a5-c59d14a82fd2DEVICE=eno3#ONBOOT=noONBOOT=yes###Add below itemsIPADDR=10.245.36.66NETMASK=255.255.255.0GATEWAY=10.245.36.1
- Reboot or /etc/init.d/network restart, Done!
阅读全文
0 0
- Static IP address in linux
- How to check ip address in linux
- Configuring Linux / Raspberry Pi with a static IP address
- Binding multiple IP address in one NIC in linux
- WINCE change static IP address
- 配置centos的静态ip 以及网关 Configure Static IP Address in CentOS
- single host multiple IP address configuration in Linux
- How to Find Your IP Address in Ubuntu Linux
- C language——read ip address in linux
- Ubuntu 8.10 static IP address bug solution
- 10 way for configure static IP Address
- Setting up Static IP Address - 12.04LTS
- How To: Make VirtualBox Use Your Router’s DHCP to get an IP Address in Linux
- linux 启动network 服务提示:Determining if ip address is already in use for device eth0
- How to check ip address in linux
- C language——convert ip address string into uint in linux
- Configuring a Static IP address on your Raspberry Pi
- Get Local IP Address and Set in the IP Control
- 关于模型视图矩阵的相机
- 解决redis desktop manager 链接redis服务器链接不上问题
- js基础知识总结
- 在windows创建第一个Flask框架的Python Web
- 迅搜在CentOS7上的安装(yum源)
- Static IP address in linux
- idea关于找不到包的问题,比如:Java:程序包org.springframework.beans.factory.annotation不存在
- 【问题记录】How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version
- 深入理解Java中的String
- (一)计算机相关概述
- 【逆向学习】还是代码 writeup
- Jquery append 方法在ie8不兼容问题
- mask rcnn 中 ROI Align及SmoothL1loss
- 途牛旅游网又暴力裁员,用这方法止损最不道德