Which command would you use to save the IP address and routing information before upgrading a GAiA Gateway?
A. netstat –rn > [filename].txt
B. ipconfig –a > [filename].txt
C. cp /etc/sysconfig/network.C [location]
D. ifconfig > [filename].txt
13 Comments on “Which command would you use to save the IP address and routing information before upgrading a GAiA Gateway?”
Oliver Finksays:
| [Expert@gw01:0]# cat /etc/sysconfig/network.C
| cat: /etc/sysconfig/network.C: No such file or directory
Does not look like a correct answer. SInce ipconfig only exists on Windows and ifconfig does not contains any routing information, all that remains is netstat. But this command does not contain any ip address of an interface.
It seems, that there is no correct answer.
0
0
DatDudesays:
Agreed
0
0
TSsays:
/etc/sysconfig/network.conf is correct
0
0
pranabsays:
ipconfig — > windows
ifconfig -a — > Linux but does not provide routing information
cp /etc/sysconfig/network.C –> SPLAT only
netstat -rn –> Windows and Linux and does provide routing information
0
0
FriedBaconsays:
Hhmmm..i doubt that linux has an -r option, usually linux uses ‘netstat -an’
It would be correct if it is only ‘netstat -n’ since BOTH linux and windows use the -n option
I believe the answer is (A), since with that information you could recreate the routing configuration of your Gateway; still I would prefer to run a ‘show configuration’ and copy the output to a .txt file
0
0
florentjustinsays:
Does /etc/sysconfig/network.C exist ? I only see /etc/sysconfig/network without .C
Interfaces and routing
* /etc/sysconfig/netconf.C
* /etc/sysconfig/network
sk54100
Routing and interface information
The following information is useful to have on hand as a reference, if you are attempting to restore a configuration, especially if your gateway module has a heavy routing table.
* Copy of /etc/sysconfig/netconf.C
* Copy of your routing and interface information
To create a copy of your routing and interface information:
| [Expert@gw01:0]# cat /etc/sysconfig/network.C
| cat: /etc/sysconfig/network.C: No such file or directory
Does not look like a correct answer. SInce ipconfig only exists on Windows and ifconfig does not contains any routing information, all that remains is netstat. But this command does not contain any ip address of an interface.
It seems, that there is no correct answer.
0
0
Agreed
0
0
/etc/sysconfig/network.conf is correct
0
0
ipconfig — > windows
ifconfig -a — > Linux but does not provide routing information
cp /etc/sysconfig/network.C –> SPLAT only
netstat -rn –> Windows and Linux and does provide routing information
0
0
Hhmmm..i doubt that linux has an -r option, usually linux uses ‘netstat -an’
It would be correct if it is only ‘netstat -n’ since BOTH linux and windows use the -n option
0
0
oops, just verified, there is an -r option
0
0
So A is the answer
0
0
From the CLI of my GAiA R77.30 Gateway:
gateway> netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
x.x.x.x x.x.x.x 255.255.255.255 UGHD 0 0 0 eth1-05.1
0.0.0.0 x.x.x.x 0.0.0.0 UGD 0 0 0 eth1-01
I believe the answer is (A), since with that information you could recreate the routing configuration of your Gateway; still I would prefer to run a ‘show configuration’ and copy the output to a .txt file
0
0
Does /etc/sysconfig/network.C exist ? I only see /etc/sysconfig/network without .C
Interfaces and routing
* /etc/sysconfig/netconf.C
* /etc/sysconfig/network
sk54100
Routing and interface information
The following information is useful to have on hand as a reference, if you are attempting to restore a configuration, especially if your gateway module has a heavy routing table.
* Copy of /etc/sysconfig/netconf.C
* Copy of your routing and interface information
To create a copy of your routing and interface information:
# netstat -rn > routes.txt
# ipconfig -a > ipconfig.txt
# ifconfig > ifconfig.txt
0
0
C. cp /etc/sysconfig/network.C [location]
0
0
There is no such thing a network.C
Probably a typo?
Answer should be: /etc/sysconfig/netconf.C
0
0
A. netstat -rn
netconf.C exists on my working system, but it’s an empty file:
=============
[Expert@FW-01:0]# pwd
/etc/sysconfig
[Expert@FW-01:0]# ls netconf.C
netconf.C
[Expert@FW-01:0]# more netconf.C
(conf
: (conns)
: (routes)
)
[Expert@FW-01:0]#
=============
0
0
Correction to above text:
A: netstat –rn > [filename].txt
0
0