TMG:Change Management IP Address

From TBwiki
(Difference between revisions)
Jump to: navigation, search
(TMG shell command)
(Fix some typos, slight reword.)
Line 1: Line 1:
This article explains how to modify the management network interface of TMG800, TMG3200, TMG7800-CTRL (MGMT0)
+
This article explains how to modify the management network interface of TMG800, TMG3200, and TMG7800-CTRL (MGMT0),
 
and the controls ports of the TMG7800-CTRL (ETH0, ETH1).
 
and the controls ports of the TMG7800-CTRL (ETH0, ETH1).
  
By default, all [[Tmedia]] management ports (MGMT0 for the TMG800, TMG3200, TMG7800-CTRL and ETH0, ETH1 for the TMG7800-CTRL) are configured as DHCP. To modify it, the [[Tmedia]] can be accessed through the serial port (See section '5.1 Connecting to the Serial Port' of the product [[Tmedia_Installation|installation guides]] for more details.
+
By default, all [[Tmedia]] management ports (MGMT0 for the TMG800, TMG3200, TMG7800-CTRL, and ETH0 and ETH1 for the TMG7800-CTRL) are configured as DHCP. To modify this default setting, the [[Tmedia]] is accessed through the serial port (See section '5.1 Connecting to the Serial Port' of the product [[Tmedia_Installation|installation guides]] for more details.
  
 
To avoid modification of the configuration files using 'vim' or 'nano', which is not very user friendly; TelcoBridges created a shell script to simplify the network configuration of the [[Tmedia]].
 
To avoid modification of the configuration files using 'vim' or 'nano', which is not very user friendly; TelcoBridges created a shell script to simplify the network configuration of the [[Tmedia]].
  
The script will allow you to modify:
+
The script will allow you to:
* Change IP address of the MGMT0 port and ETH0 and ETH1 ports (for TMG7800-CTRL)  
+
* Change the IP address of the MGMT0 port and ETH0 and ETH1 ports (for TMG7800-CTRL)  
* Change default network interface and/or IP address
+
* Change the default network interface and IP address
* Change DNS
+
* Change the DNS
  
 
<span style="color:#B22222">
 
<span style="color:#B22222">
''WARNING'': Remember to restart Toolpack after changing the IP address.
+
''WARNING'': Remember to restart Toolpack after you change the IP address.
 
</span>
 
</span>
  
Line 20: Line 20:
  
 
== Modify static IP address ==
 
== Modify static IP address ==
This example changes the IP static address with no DNS server
+
This example changes the IP address to static address with no DNS server
  
 
*Steps to modify mgmt0 from dhcp to static:
 
*Steps to modify mgmt0 from dhcp to static:
Line 29: Line 29:
 
  Enter network mask ?[]                                                                      --> 255.255.255.0
 
  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)
+
*Steps to modify the default gateway address (this is necessary to assign an IP address when in static mode.)
 
  Would you like to modify the default gateway address ?[No]                                  --> yes
 
  Would you like to modify the default gateway address ?[No]                                  --> yes
 
  Enter default gateway ip address ?[]                                                        --> 10.0.0.1
 
  Enter default gateway ip address ?[]                                                        --> 10.0.0.1
Line 37: Line 37:
 
  Would you like to reconfigure the DNS (enter 'remove' to erase dns) ?[No]                  --> remove
 
  Would you like to reconfigure the DNS (enter 'remove' to erase dns) ?[No]                  --> remove
  
*The script will show you the new configuration. Then you can acknowledge those changes.
+
*The script will show you the new configuration. Then you can acknowledge the changes.
 
  Do you want to save this new configuration ?[No]                                            --> yes
 
  Do you want to save this new configuration ?[No]                                            --> yes
  
*You can ask the script to restart the network service to restart to apply the new configuration.
+
*You can ask the script to restart the network service and apply the new configuration.
 
  Would you like to restart the network service now ?[No]                                    --> yes
 
  Would you like to restart the network service now ?[No]                                    --> yes
  
Line 58: Line 58:
 
  Enter network mask ?[]                                                                      --> 255.255.255.0
 
  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)
+
*Steps to modify the default gateway address (this is necessary to assign an IP address when in static mode.)
 
  Would you like to modify the default gateway address ?[No]                                  --> yes
 
  Would you like to modify the default gateway address ?[No]                                  --> yes
 
  Enter default gateway ip address ?[]                                                        --> 192.168.0.1
 
  Enter default gateway ip address ?[]                                                        --> 192.168.0.1
Line 66: Line 66:
 
  Would you like to reconfigure the DNS (enter 'remove' to erase dns) ?[No]                  --> remove
 
  Would you like to reconfigure the DNS (enter 'remove' to erase dns) ?[No]                  --> remove
  
*The script will show you the new configuration. Then you can acknowledge those changes.
+
*The script will show you the new configuration. Then you can acknowledge the changes.
 
  Do you want to save this new configuration ?[No]                                            --> yes
 
  Do you want to save this new configuration ?[No]                                            --> yes
  
Line 78: Line 78:
 
== Change static to dhcp ==
 
== Change static to dhcp ==
  
This example changes the IP address from static to DHCP IP with DNS server (1 domain and 2 nameservers)
+
This example changes the IP address from static to DHCP IP with a DNS server (1 domain and 2 nameservers)
  
 
*Steps to modify mgmt0 from static to dhcp:
 
*Steps to modify mgmt0 from static to dhcp:
Line 91: Line 91:
 
  Select the host dhcp name ?[TB006201]                                                      --> TB006201
 
  Select the host dhcp name ?[TB006201]                                                      --> TB006201
  
*Steps to configure the DNS (this example will setup 1 search domain and 2 nameservers)
+
*Steps to configure the DNS (this example will set up 1 search domain and 2 nameservers)
 
  Would you like to modify the DNS configuration ?[No]                                        --> yes
 
  Would you like to modify the DNS configuration ?[No]                                        --> yes
 
  Would you like to reconfigure the DNS (enter 'remove' to erase dns) ?[No]                  --> yes
 
  Would you like to reconfigure the DNS (enter 'remove' to erase dns) ?[No]                  --> yes
Line 100: Line 100:
 
  Third nameserver ip address (enter 'remove' to remove entry)  ?[]                          -->
 
  Third nameserver ip address (enter 'remove' to remove entry)  ?[]                          -->
  
*The script will show you the new configuration. Then you can acknowledge those changes.
+
*The script will show you the new configuration. Then you can acknowledge the changes.
 
  Do you want to save this new configuration ?[No]                                            --> yes
 
  Do you want to save this new configuration ?[No]                                            --> yes
  
*You can ask the script to restart the network service to restart to apply the new configuration.
+
*You can ask the script to restart the network service and apply the new configuration.
 
  Would you like to restart the network service now ?[No]                                    --> yes
 
  Would you like to restart the network service now ?[No]                                    --> yes
  
Line 110: Line 110:
  
  
'''NOTE:''' ''The networks 172.31.1.x (netmask 255.255.255.0) and 172.16.x.x and 172.18.x.x (netmask 255.255.0.0) cannot be used for the management Interface IP as they are being used internally.''
+
'''NOTE:''' ''The networks 172.31.1.x (netmask 255.255.255.0) and 172.16.x.x and 172.18.x.x (netmask 255.255.0.0) cannot be used for the management Interface IP because they are reserved for internal use.''

Revision as of 13:49, 27 April 2015

This article explains how to modify the management network interface of TMG800, TMG3200, and TMG7800-CTRL (MGMT0), and the controls ports of the TMG7800-CTRL (ETH0, ETH1).

By default, all Tmedia management ports (MGMT0 for the TMG800, TMG3200, TMG7800-CTRL, and ETH0 and ETH1 for the TMG7800-CTRL) are configured as DHCP. To modify this default setting, the Tmedia is accessed through the serial port (See section '5.1 Connecting to the Serial Port' of the product installation guides for more details.

To avoid modification of the configuration files using 'vim' or 'nano', which is not very user friendly; TelcoBridges created a shell script to simplify the network configuration of the Tmedia.

The script will allow you to:

  • Change the IP address of the MGMT0 port and ETH0 and ETH1 ports (for TMG7800-CTRL)
  • Change the default network interface and IP address
  • Change the DNS

WARNING: Remember to restart Toolpack after you change the IP address.

Contents

TMG shell command

 tbchangeip

Modify static IP address

This example changes the IP address to static address 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 ?[]                                                                        --> 10.0.0.126
Enter network mask ?[]                                                                      --> 255.255.255.0
  • Steps to modify the default gateway address (this is necessary to assign an IP address when in static mode.)
Would you like to modify the default gateway address ?[No]                                  --> yes
Enter default gateway ip address ?[]                                                        --> 10.0.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. Then you can acknowledge the changes.
Do you want to save this new configuration ?[No]                                            --> yes
  • You can ask the script to restart the network service and apply the new configuration.
Would you like to restart the network service now ?[No]                                     --> yes
  • Toolpack needs to be restarted to be aware of the change
tbtoolpack restart


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 assign an IP address when in static mode.)
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. Then you can acknowledge the changes.
Do you want to save 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
  • Toolpack needs to be restarted to be aware of the change
tbtoolpack restart


Change static to dhcp

This example changes the IP address from static to DHCP IP with a 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 set up 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. Then you can acknowledge the changes.
Do you want to save this new configuration ?[No]                                            --> yes
  • You can ask the script to restart the network service and apply the new configuration.
Would you like to restart the network service now ?[No]                                     --> yes
  • Toolpack needs to be restarted to be aware of the change
tbtoolpack restart


NOTE: The networks 172.31.1.x (netmask 255.255.255.0) and 172.16.x.x and 172.18.x.x (netmask 255.255.0.0) cannot be used for the management Interface IP because they are reserved for internal use.

Personal tools