This support forum board is for support questions relating to
Nagios Log Server , our solution for managing and monitoring critical log data.
heskez
Posts: 17 Joined: Wed Dec 09, 2015 9:38 am
Post
by heskez » Fri Dec 11, 2015 11:12 am
ONBOOT=yes
great thanks!
But the default value = NO?
hsmith
Agent Smith
Posts: 3539 Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:
Post
by hsmith » Fri Dec 11, 2015 11:15 am
Yep, threw me off when I was learning Linux!
There's also BOOTPROTO=DHCP , which if you're not using a static IP, and isn't there, you won't have an IP address upon booting.
So many little gotchas.
Former Nagios Employee.
me.
jolson
Attack Rabbit
Posts: 2560 Joined: Thu Feb 12, 2015 12:40 pm
Post
by jolson » Fri Dec 11, 2015 3:29 pm
Example static IP setup:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
Code: Select all
DEVICE=eth0
ONBOOT=yes
IPADDR=192.168.1.6
NETMASK=255.255.255.0
DNS1=8.8.8.8
DNS2=8.8.4.4
GATEWAY=192.168.1.1
Restart networking with your new static configuration:
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.