LINUX itself though the network settings can be found in the graphic interface is setting the IP address for the network card, but the actual realization of the network card IP address and other information is accurate, reliable, or to the appropriate files for settings, we present to set two network cards, the edited file as follows: root @ localhost network-scripts] # pwd/etc/sysconfig/network-scripts root @ localhost # moreifcfg-et0 network-scripts] TYPE = "Ethernet" BOOTPROTO = "static" IPADDR = "0.0.0.0" DEVICE = "lan" HWADDR = "00: 29: 33 0C:: 69: 86 ' ONBOOT =" yes "NETMASK =" 0.0.0.0 "root @ localhost # moreifcfg-et1 network-scripts] TYPE =" Ethernet "BOOTPROTO =" static "IPADDR =" 10.70.10.11 "DEVICE =" wan "HWADDR =" 00: 29: 33 0C:: 69: 90 ' ONBOOT = "yes" NETMASK = "255.255.0.0" GATEWAY = "10.70.0.1" we focused look at the configuration file, ifcfg-eth1 which ONBOOT = "yes" is necessary to ensure that the system automatically starts the network card connected to the network, the gateway's information is added to our hand-out, and guarantee a gateway can properly access the external network, ifcfg-eth0 file as long as the guarantee ONBOOT = "yes" on the can, of course, like in the routeros, we will be the name of the external network is defined as a wan, the name of the internal interface is defined as the lan.
No comments:
Post a Comment