You are on page 1of 3

NOTE: THE NEW NETWORK CONFIGS HAVE THE #1 PC BEHIND THE ROUTER SO THEY HAVE A

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?

Obviously it must be done while Windows is running on the PC, so the PC is


networked. So first,
the Ubuntu files must be accessed while Windows is running. (These steps must be
run on a Linux PC.)

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.)

If NetworkManager is automatically controlling network interfaces, without any user


entered
configuration (either DHCP or manual), network information cannot be manually
entered
(i.e. without being under control of the PC's Ubuntu OS). So to accomplish any
changes, NetworkManager
must be disabled, and the standard network configuration set up:

1. Start the File Manager: nautilus


NOTE: Must start nautilus under a root shell (su -)
2. Open /etc/NetworkManager/NetworkManager.conf (must prefix with /media if
mounted as described above)
3. Under the [ifupdown] section, change to: managed=true (orginal value is
false)
4. Open /etc/network/interfaces
5. Add the following lines:
NOTE: This assumes that the network card attached to the public network will
be eth0 and not eth1.
The Dell Vostros seemed to assign eth0 to the onboard network
controller.
(Ubuntu appears to assign in the same order as Windows. For example,
with the Dell Dimension
2350, the slotted network card is assigned the name "Local Area
Connection" while the onboard
network controller is assigned the name "Local Area Connection 2".
When booted into Ubuntu,
this PC assigns "eth1", not "eth0", to the onboard network controller.)
auto eth0
iface eth0 inet static
address {IP-address} (don't type the brackets!)
netmask {subnet}
gateway {gateway-IP}
6. Unmount
- umount /media
- umount /mnt/ubuntu/disks/root.disk (for some reason a second mount for
the Ubuntu image is created)
- umount /mnt
7. At this point rebooting the PC into Ubuntu should result in the static IP
address being used
=== NOW DO THE FOLLOWING STEPS AFTER THE SKIPPED STEPS ===

To update the NetworkManager configuration, boot the PC into Ubuntu


(/boot_ubuntu_rmt.bat reboot) and
connect using VNC:
***SKIP THESE STEPS AS COULD NOT UPDATE THE NETWORK MANAGER CONNECTION WHEN DEFINED
IN /etc/network/interfaces******
* 1. Start a terminal session (Ctrl-Alt-T) and run ifconfig to find the eth0
hardware address
* 2. From the Ubuntu Desktop, Applications -> System Tools -> Administration ->
Network Tools
* 3. Select the eth0 device under Network Devices
* 4. Click on Configure
* 5. Double-click on "Wired connection 2"
* 6. The Device MAC address should agree with the ifconfig eth0 hardware address;
if it does not,
* close and try "Wired connection 1"
* 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 (This may drop the network connection, so
reconnect.)
* 13. This should have automatically removed the eth0 configuration in
/etc/network/interfaces
* but if it hasn't, open this file and remove the eth0 config lines.
* 14. /etc/NetworkManager/NetworkManager.conf should also have been automatically
updated, so that
* "[ifupdown] managed=false" is set. A new line should also have been added
under [main]:
* no-auto-default=eth0-hardware-address
* This causes NetworkManager to get the configuration for eth0 from the
configuration entered
* under Network Tools (/etc/NetworkManager/system-connections/Wired connection
2
***********************************************************************************
**********************************

=== CONTINUE WITH THESE STEPS!!! ===

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

You might also like