Professional Documents
Culture Documents
Ubuntu Manually Update Network Address
Ubuntu Manually Update Network Address
PRIVATE ADDRESS
#1 PC ADDRESS MUST BE SET TO 10.11.STORE#.101 WHEN THE NETWORK IS UPDATED!!!
===================================================================================
==========
Most #1 PCs do not require any Ubuntu IP address configuration as generally ISPs
use
DHCP, so the default NetworkManager can connect to the network without any
configuration data.
However if the ISP requires a static IP address, and the PC wasn't set up this way,
and is in
service, how can its IP address be updated remotely?
1. Start an OpenVPN connection to the remote PC (so it can be accessed from the
local network)
2. Mount the windows partition containing the Ubuntu (usually on drive D:):
mount -t cifs //{IP-Address}/D$ /mnt -o username=administrator
(will prompt for password)
3. Once the windows partition is mounted, the root Ubuntu patition may be
mounted:
mount -o loop /mnt/ubuntu/disks/root.disk /media
4. At this point the remote Ubuntu files will be found under the /media
directory
(Be sure to unmount both mounts when done.)
1. Start a terminal session (Ctrl-Alt-T) and run ifconfig to find the eth0 (or
eth1 if it is the public
connection) hardware address
2. From the Ubuntu Desktop, Applications -> System Tools -> Administration ->
Network Tools
3. Select the eth0 )or eth1) device under Network Devices
4. Click on Configure, then Add (the eth0 interface now controlled by
/etc/network/interfaces will show
up as "ifupdown (eth0)" and cannot be edited, so must add a connection)
5. Connection name will probably be "Wired connection 2" if two cards
6. Select the "Device MAC Address" for eth0
7. Select the IPV4 settings tab
8. Change method to "Manual" for a static IP address
9. Add the IP address, subnet and gateway under the Addresses section
10. Enter at least two DNS servers (separate by comma)
11. Save, then close the Network Connection selection window
12. Close the Network Tools window
13. Open /etc/network interfaces and remove the eth0 configuration that was
added in the previous section
14. Open /etc/NetworkManager/NetworkManager.conf
15. Under the [main] section, add: no-auto-default=eth0-hardware-address (MAC
address from step 1)
16. Under the [ifupdown] section change entry to: managed=false