Linux from scratch 7.2.2
Michael Havens
bmike1 at gmail.com
Mon Aug 25 20:50:28 MST 2014
the book says:
The following command creates a sample file for the *eth0* device
with a static IP address:
cd /etc/sysconfig/
cat > ifconfig.eth0 << "EOF" ONBOOT=yes
IFACE=eth0
SERVICE=ipv4-static
IP=192.168.1.1
GATEWAY=192.168.1.2
PREFIX=24
BROADCAST=192.168.1.255
EOF
I was looking at it and my network is on the 192.168.0.x subnet. How do I look
at the settings on the host system to see what I need to change the ip
numbers too?
(you knowthe broadcast/gateway numbers)
I tried, 'ip addr' and 'ifconfig' but that didn't show the current settings.
I even spent time looking at their man pages but am thinking their not
what I need.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phxlinux.org/pipermail/plug-discuss/attachments/20140825/adb107b0/attachment.html>
More information about the PLUG-discuss
mailing list