Folks:
This conversation was trying to get Centos 7 installed on a machine with a NIC that got de-supported in EL7.
Following the advice to do as follows: - Install (via CD) the "minimal" ISO - add the RPM of kmod-forcedeth-0.64-1.el7.elrepo.x86_64.rpm from a USB stick, as obtained from ELPRO (install went without serious complaint) I'm at a loss of what to do next, namely - How do I tell Centos that there's a NIC, and how do I configure it?
PS: There is no GUI, and the command line display is very tiny.
Guidance would be appreciated.
David
On 16/11/14 11:16, david wrote:
Folks: I'm at a loss of what to do next, namely
- How do I tell Centos that there's a NIC, and how do I configure it?
PS: There is no GUI, and the command line display is very tiny.
Guidance would be appreciated.
1. Get list of interfaces that are up: ip l l
Then load the module: modprobe forcedeth
Then check interface status again to see which has come up (if any): ip l l
If no interface has come up, post the error on screen (if any), then check the logs to see if any errors are reported and post them back here as well.
(not sure if on C7 immediately initiates a DHCP request when the interface comes up)
Check if interface has an IP address: ip a l
If no IP address, then request one via DHCP: dhclient <iface>
Browse the net... Done!
=============================
If no DHCP server on network, then set one manually as indicated below: ip a a 1.1.1.1/24
then bring it up: ip l set <iface> up
then add a default route: ip r a 0/0 via <gateway IP address>
Browse the net... Done!
Cheers, ak.
On Tue, Nov 18, 2014 at 5:41 AM, Anthony K akcentos@anroet.com wrote:
On 16/11/14 11:16, david wrote:
Folks: I'm at a loss of what to do next, namely
- How do I tell Centos that there's a NIC, and how do I configure it?
PS: There is no GUI, and the command line display is very tiny.
Guidance would be appreciated.
Anthony K's suggestions will not be persistent (won't last a shutdown/reboot). But they will be enough to regain network access and SSH into the system from the comfort of your workstation/laptop.
- Get list of interfaces that are up:
ip l l
Then load the module: modprobe forcedeth
@Anthony, Thanks for sharing your examples. I've gotten spoiled by using the "ip addr show" shortcut of "ip a s". So much so that I try to do "ip l s" for "ip link show", which doesn't work. Given the error message: Not enough information: "dev" argument is required. I figure ip tools thinks I'm attempting to set something on the interface. Anyhow, your "ip l l" shortcut appears (see my manpage comment below) to evaluate to "ip link list", which is awesome! Shortcuts for the win.
On a CentOS 6.6 system per the ip manpage, it seems that "list" is undocumented for link and addr.
(Certainly correct me if I'm wrong ... I did find a TLDP page with an example of "ip link list", so it's known by some.)
On 19/11/14 12:18, SilverTip257 wrote:
@Anthony, Thanks for sharing your examples. I've gotten spoiled by using the "ip addr show" shortcut of "ip a s". So much so that I try to do "ip l s" for "ip link show", which doesn't work. Given the error message: Not enough information: "dev" argument is required. I figure ip tools thinks I'm attempting to set something on the interface. Anyhow, your "ip l l" shortcut appears (see my manpage comment below) to evaluate to "ip link list", which is awesome! Shortcuts for the win.
On a CentOS 6.6 system per the ip manpage, it seems that "list" is undocumented for link and addr.
(Certainly correct me if I'm wrong ... I did find a TLDP page with an example of "ip link list", so it's known by some.)
Thanks Mike.
I use Ubuntu on the laptop and in the manpage for the ip command it has the following:
COMMAND ...*As a rule, it is possible to add,** ** delete and **show (or list )**objects, but some objects do not allow all** ** of these operations or have some additional commands.* ...
Seems to be vaguely documented - I can see how *(or list )* part can be misleading as you might think they are just saying that show _will_list_ and not necessary that *list* can be substituted for *show* - it's all in the wording!
Oddly, the man page for ip (iproute-2.6.18-13.el5) on CentOS 5 is way more comprehensive (it has way more examples on where list can be used) than that on Ubuntu 14.04.1 with iproute-3.12.0-2! But then, Ubuntu has a man page for each ip object:
$ man ip-<tab> ip-address ip-monitor ip-ntable ip-tunnel ip-addrlabel ip-mroute ip-route ip-xfrm ip-l2tp ip-neighbour ip-rule ip-link ip-netconf ip-tcp_metrics ip-maddress ip-netns ip-token
Cheers, ak.