TMG:Change Management IP Address

From TBwiki
Revision as of 17:11, 21 January 2011 by Cbilodeau (Talk | contribs)
Jump to: navigation, search

This article explains how to modify the management network interface (labeled MGMT0) of a TMG unit.


To avoid modification of the configuration files using 'vim' or 'nano', which is not very user friendly. TelcoBridges create shell script that simplifies the network configuration of the TMG.

The MGMT0 port is configured in dhcp by default.

The script will allow you to modify:

  • Change IP address of the MGMT0 port
  • Change default network interface and/or IP address
  • Change DNS

TMG command

 tbchangeip


Change dhcp to static

This example changes the IP address from DHCP to static IP with no DNS server

Steps to modify mgmt0 from dhcp to static:

 Do you want to modify the network settings (enter 'help' for usage) ?[No]                   --> yes
 Do you want to modify mgmt0 ?[No]                                                           --> yes
 Select network mode (dhcp or static) ?[dhcp]                                                --> static
 Enter IP address ?[]                                                                        --> 192.168.0.40
 Enter network mask ?[]                                                                      --> 255.255.255.0

Steps to modify the default gateway address (this is necessary to give an IP address when in static)

 Would you like to modify the default gateway address ?[No]                                  --> yes
 Enter default gateway ip address ?[]                                                        --> 192.168.0.1

Steps to remove the DNS configuration

 Would you like to modify the DNS configuration ?[No]                                        --> yes
 Would you like to reconfigure the DNS (enter 'remove' to erase dns) ?[No]                   --> remove

The script will show you the new configuration. It is necessary to acknowlege those changes.

 Do you want to apply this new configuration ?[No]                                           --> yes

You can ask the script to restart the network service to restart to apply the new configuration.

 Would you like to restart the network service now ?[No]                                     --> yes


Change static to dhcp

This example changes the IP address from static to DHCP IP with DNS server (1 domain and 2 nameservers)

Steps to modify mgmt0 from static to dhcp:

 Do you want to modify the network settings (enter 'help' for usage) ?[No]                   --> yes
 Do you want to modify mgmt0 ?[No]                                                           --> yes
 Select network mode (dhcp or static) ?[static]                                              --> dhcp
 Select a dhcp name ?[TB006201]                                                              --> TB006201

Steps to modify the default gateway address (you should let the DHCP server give you the gateway address)

 Would you like to modify the default gateway address ?[No]                                  --> yes
 Which network interface do you want to set as default gateway address interface (mgmt0/mgmt1) --> mgmt0
 Select the host dhcp name ?[TB006201]                                                       --> TB006201

Steps to configure the DNS (this example will setup 1 search domain and 2 nameservers)

 Would you like to modify the DNS configuration ?[No]                                        --> yes
 Would you like to reconfigure the DNS (enter 'remove' to erase dns) ?[No]                   --> yes
 First search domain (enter 'remove' to remove entry)  ?[]                                   --> mynetwork.lan
 Second search domain (enter 'remove' to remove entry)  ?[]                                  -->
 First nameserver ip address (enter 'remove' to remove entry)  ?[]                           --> 192.168.0.10
 Second nameserver ip address (enter 'remove' to remove entry)  ?[]                          --> 192.168.0.11
 Third nameserver ip address (enter 'remove' to remove entry)  ?[]                           -->

The script will show you the new configuration. It is necessary to acknowlege those changes.

 Do you want to apply this new configuration ?[No]                                           --> yes

-You can ask the script to restart the network service to restart to apply the new configuration.

 Would you like to restart the network service now ?[No]                                     --> yes
Personal tools