Set up telecom Netcom dual line IP address under Linux

Source: Internet
Author: User

Working on the need to set up a telecom Netcom dual-line IP address under Linux, operating system for SUSE Linux Enterprise Linux one-SP2, briefly record the next steps:

    1. Edit /etc/sysconfig/network/ifcfg-eth0, /etc/sysconfig/network/ifcfg-eth1, set the IP address of two NICs, eth0 for telecommunications, Eth1 for the Netcom

bootproto= ' static ' broadcast= ' ethtool_options= ' ipaddr= ' ${telecomip}/${telecomnetmask} ' mtu= ' NAME= ' Ethernet Card 0 ' netmask= ' network= ' remote_ipaddr= ' startmode= ' auto ' usercontrol= ' no '

2. Add two named route tables in the routing table configuration file

echo "252 tel251 cnc" >>/etc/iproute2/rt_tables

3. Write a script and set the boot from start

#!/bin/bash/sbin/ip Route Flush Table TEL/SBIN/IP route add default via ${TELECOMGW} dev eth0 src ${telecomip} table tel/s BIN/IP rule add from ${TELECOMIP} table TEL/SBIN/IP route flush Table CNC/SBIN/IP route add default via ${CNCGW} dev eth2 src ${cncip} table cnc/sbin/ip rule add from ${cncip} table CNC

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.