02-04-2013
Hi..i have 4 lan port configured with different gateway. when i tried running command getting below output.
/etc/sysconfig/network-scripts/ifcfg-eth0:GATEWAY=x1.x2.x3.x4
/etc/sysconfig/network-scripts/ifcfg-eth1:GATEWAY=x11.x12.x13.x14
/etc/sysconfig/network-scripts/ifcfg-eth2:GATEWAY=x21.x22.x23.x24
/etc/sysconfig/network-scripts/ifcfg-eth3:GATEWAY=x31.x32.x33.x34
9 More Discussions You Might Find Interesting
1. Solaris
my actual default gatewas IP is:
default 192.168.11.254
and I need to change it to 192.168.11.2, I'm using Solaris 9, how can i do it? and how i can save it in case that the machine restart and have the new default gateway IP saved? (5 Replies)
Discussion started by: Lestat
5 Replies
2. Shell Programming and Scripting
Hello all!
We have two fedora routers one at each site. What we are trying to do worked using freesco but not on fedora, i'm not very good at scripting and need a little guidence. Basicly what we are trying to do is if the primary line dies, the router will change it's routes to go through our... (0 Replies)
Discussion started by: slacker
0 Replies
3. AIX
Hi,
I have two interfaces on m AIX 5.3 box. One going to 192.168.1.x and it has a gateway of 192.168.1.1.
I configured the other gateway with 192.168.2.x and the default gateway as 192.168.2.1. But I can't get connectivity to the 192.168.2.1 network. Can someone help me out and let me know... (7 Replies)
Discussion started by: bbbngowc
7 Replies
4. Solaris
Hi Gurus
Recently i had change the gateway for a server
i had change the IP in the /etc/defaultrouter
and run the below command
# route add default 10.86.33.222
# route delete default 10.86.33.1
# netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref ... (2 Replies)
Discussion started by: SmartAntz
2 Replies
5. HP-UX
where in configuration files can i modify default gateway in hp-ux11iv3 (5 Replies)
Discussion started by: h@foorsa.biz
5 Replies
6. Linux
Dear Sir
I am a newbie in the world of IP telephony. I have been working with Asterisk PBX (SIP) and Cisco Call Manager (MGCP) but now I am learning on how to work GNUGK for H.323 Gatekeeper.
I am having a problem, configuring static call routing on GNUGK
in the section
... (0 Replies)
Discussion started by: mfondoum
0 Replies
7. UNIX for Dummies Questions & Answers
I have NCR MP-RAS unix. I have been trying for several months to get our network working since we had never used it before. I have setup all routes that I can think of. I know it has something to do with the routing table, because out of sheer luck I was able to get it working, and than like a... (4 Replies)
Discussion started by: Rutgerncas
4 Replies
8. IP Networking
I am am using IPv6 IP's with an OS of Debian.
Is it possible to set a *static* default gateway w/o the router being connected? Will that gateway change when the router is connected?
TIA (0 Replies)
Discussion started by: Meow613
0 Replies
9. UNIX for Beginners Questions & Answers
Dear friends
I use RedHat 6.5, which sets the gateway in the configuration file / etc / sysconfig / network as GATEWAY = 192.168.1.26, and the gateway in the configuration file / etc / sysconfig / network-scripts / ifcfg-eth11 as GATEWAY = 192.168.1.256. The two gateways are different.... (6 Replies)
Discussion started by: tanpeng
6 Replies
LEARN ABOUT CENTOS
bond2team
BOND2TEAM(1) Bonding to Team conversion tool BOND2TEAM(1)
NAME
bond2team -- Converts bonding configuration to team
SYNOPSIS
bond2team [options]
DESCRIPTION
bond2team is a tool to convert bonding options to team trying as much as possible to keep the original functionality.
The resulting files are saved in a temporary directory using ifcfg style by default. In the case of converting an ifcfg file, it translates
the bonding options to team, preserving all other options. In that case, it converts the respective slave ifcfg files to team port, pre-
serving all their other options too. In case of converting from given bonding options in the command line, the tool can use the specified
ports as team ports.
OPTIONS
--master <interface>
Specify the interface name or ifcfg file to convert. If the interface name is specified, the tool will look at
/etc/sysconfig/network-scripts/ for the respective ifcfg file.
--rename <interface>
This is a convenient option to replace the original interface name by the specified name. For instance, if --master specifies bond0,
it is possible to use --rename team0 to change the final interface name to team0.
--ifcfg
Set the output format to ifcfg config style. [default]
--json Set the output format to JSON style. See teamd.conf(5) for further details.
--bonding_opts '<bonding options>'
Specify the bonding options to be converted instead of reading them from the ifcfg file.
--port <interface>
Set the specified interface as a team port.
--configdir <directory>
Change the ifcfg configuration path from /etc/sysconfig/network-scripts to the specified <directory>.
--outputdir <directory>
Set the output directory to <directory>.
--stdout
Print the result to the screen instead of writing to files.
--debug
Increase the debugging level.
--quiet
Disallow any messages to be printed to console.
--version
Print tool version to console and exit.
--help Print help text to console and exit.
--examples
Print common usage examples to console and exit.
EXAMPLES
To convert the current 'bond0' ifcfg configuration to team ifcfg:
# bond2team --master bond0
To convert the current 'bond0' ifcfg configuration to team ifcfg renaming the interface name to 'team0'. Caution : firewall rules, alias
interfaces, etc., that might be tied to the original interface name can break after the renaming because the tool will only change the
ifcfg file, nothing else.
# bond2team --master bond0 --rename team0
To convert given bonding parameters with ports without any ifcfg:
# bond2team --bonding_opts 'mode=1 miimon=500 primary=eth1 primary_reselect=0' --port eth1 --port eth2 --port eth3 --port eth4
For more examples, see the option --examples.
CAVEATS
The tool will not convert any other configuration which might be tied to the current setup. For instance, firewall rules, alias interfaces,
bridges, and so on.
AUTHOR
Flavio Leitner is the original author of the tool. Jiri Pirko is the original author and current maintainer of libteam.
SEE ALSO
teamd(8), teamdctl(8), teamd.conf(5), teamnl(8)
libteam 2013-07-18 BOND2TEAM(1)