Re: How to disable the NIC, then the connection is normal ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Edward S.P. Leung wrote:
Dear All,

Mine is Fedora Core 6 :
eth0 ( Internet )
eth1 ( Intranet )

Now, due to the envoriment problem, the eth1 need to be disable at this moment, so I try to do the following config
[root@host1 ~]$ cat /etc/sysconfig/network-scripts/ifcfg-eth1
# Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+
DEVICE=eth1
BROADCAST=192.168.1.255
# HWADDR=00:17:31:7E:F8:34
IPADDR=192.168.1.254
# IPV6ADDR=
# IPV6PREFIX=
NETMASK=255.255.255.0
NETWORK=192.168.1.0
# ONBOOT=yes
ONBOOT=no
[root@host1 ~]$

After reboot the network function, the server machine can't to connect with Internet again :
[root@host1 ~]$ ping -c 3 202.175.xxx.xxx
PING 202.175.xxx.xxx (202.175.xxx.xxx) 56(84) bytes of data.
 From 202.175.xxx.xxx icmp_seq=1 Destination Host Unreachable
 From 202.175.xxx.xxx icmp_seq=2 Destination Host Unreachable
 From 202.175.xxx.xxx icmp_seq=3 Destination Host Unreachable

So, how must I modify the config of eth1 interface, then the connection of Internet will be successful ?

Uncomment the "HWADDR=" line to ensure that the configuration ties to
the correct NIC.  It's possible that the ifcfg-eth1 setup is really
messing with eth0 instead.

Second, make sure the default gateway is set up correctly, as your problem sounds like it's not being set. If your default gateway is
on the network served by the ifcfg-eth1 file above, then it won't be
set as you don't have a NIC on that network.  The default gateway is set
by a "GATEWAY=" line in one of the ifcfg-eth* files or in the
/etc/sysconfig/network file.

It'd help if you could post the contents of the following files:

	/etc/sysconfig/network-scripts/ifcfg-eth0
	/etc/sysconfig/network-scripts/ifcfg-eth1
	/etc/sysconfig/network

Also the output of the commands "ifcfg eth0" and "ifcfg eth1".  You can
obfuscate the actual network addresses if you wish or send the stuff to
me off-list and I can try to help you directly.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer                      ricks@xxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-    When you don't know what to do, walk fast and look worried.     -
----------------------------------------------------------------------

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux