Static IP
Posted: Thu Feb 13, 2014 2:32 pm
I have viewed every version of "how to set static ip" on the internet!
None have worked!
HELP
Is there a definitive correct way?
None have worked!
HELP
Is there a definitive correct way?
A small, affordable computer with free resources to help people learn, make things, and have fun
https://www.raspberrypi.org/forums/
https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=69413
sudo ifconfig eth0 192.168.99.100Bobble wrote:I have viewed every version of "how to set static ip" on the internet!
None have worked!
HELP
Is there a definitive correct way?
Code: Select all
auto lo
iface lo inet loopback
iface eth0 inet static
address 10.232.1.81
netmask 255.255.255.0
gateway 10.232.1.1
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 10.232.1.99
netmask 255.255.255.0
gateway 10.232.1.1
wpa-passphrase password
wpa-ssid myssid
The correct way depends on the distro and what software is being used to manage the interface in question. Please tell us what you are running so we can point you to correct advice.Bobble wrote:I have viewed every version of "how to set static ip" on the internet!
None have worked!
HELP
Is there a definitive correct way?
This will only work for the current session. It's affects will go away on next boot.sudo ifconfig eth0 192.168.99.100
sudo ifconfig eth0 up
or
sudo ip address add 192.168.99.100 dev eth0