مثل:
كود:
/sbin/ifconfig
كود:
/sbin/ifconfig eth0 up;/sbin/dhclient eth0;ping www.google.com
كود:
/sbin/service network status
كود:
system-config-network
و كلها أكدت أن كرت الشبكة لا تعمل بعد!
/sbin/ifconfig
/sbin/ifconfig eth0 up;/sbin/dhclient eth0;ping www.google.com
/sbin/service network status
system-config-network
nano -w /etc/modprobe.conf
alias eth0 [B]sis190[/B]
[COLOR=red] [[email protected] Amer]# /sbin/lsmod[/COLOR] Module Size Used by autofs4 29253 3 hidp 23105 2 rfcomm 42457 0 l2cap 29505 10 hidp,rfcomm bluetooth 53925 5 hidp,rfcomm,l2cap lockd 63337 0 sunrpc 146685 2 lockd cpufreq_ondemand 12493 2 acpi_cpufreq 13897 0 ip_conntrack_ftp 11569 0 ip_conntrack_netbios_ns 6977 0 ipt_REJECT 9665 1 xt_state 6209 12 ip_conntrack 53281 3 ip_conntrack_ftp,ip_conntrack_netbios_ns,xt_state nfnetlink 10713 1 ip_conntrack iptable_filter 7105 1 ip_tables 17029 1 iptable_filter ip6t_REJECT 9409 1 xt_tcpudp 7105 30 ip6table_filter 6849 1 ip6_tables 18053 1 ip6table_filter x_tables 17349 6 ipt_REJECT,xt_state,ip_tables,ip6t_REJECT,xt_tcpudp,ip6_tables loop 18761 0 dm_mirror 24393 0 dm_multipath 25421 0 scsi_dh 12097 1 dm_multipath video 21192 0 backlight 10049 1 video sbs 18533 0 power_meter 16461 0 hwmon 7365 1 power_meter i2c_ec 9025 1 sbs i2c_core 24001 1 i2c_ec dell_wmi 8401 0 wmi 12137 1 dell_wmi button 10705 0 battery 13637 0 asus_acpi 19289 0 ac 9157 0 radeon 106977 0 drm 65365 1 radeon ipv6 270305 17 ip6t_REJECT xfrm_nalgo 13381 1 ipv6 parport_pc 29157 0 lp 15849 0 parport 37513 2 parport_pc,lp joydev 13185 0 snd_hda_intel 472209 1 snd_seq_dummy 7877 0 snd_seq_oss 32577 0 snd_seq_midi_event 11073 1 snd_seq_oss snd_seq 49585 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event testmgr_cipher 6849 0 testmgr 52337 1 testmgr_cipher snd_seq_device 11725 3 snd_seq_dummy,snd_seq_oss,snd_seq aead 11840 1 testmgr snd_pcm_oss 42817 0 crypto_blkcipher 17601 1 testmgr snd_mixer_oss 19009 1 snd_pcm_oss crypto_algapi 22849 3 testmgr,aead,crypto_blkcipher crypto_api 12609 5 xfrm_nalgo,testmgr,aead,crypto_blkcipher,crypto_algapi snd_pcm 72133 2 snd_hda_intel,snd_pcm_oss arc4 6209 2 snd_timer 24517 2 snd_seq,snd_pcm ath5k 124029 0 sr_mod 19941 0 snd_page_alloc 14281 2 snd_hda_intel,snd_pcm sis190 23749 0 cdrom 36577 1 sr_mod snd_hwdep 12869 1 snd_hda_intel mii 9409 1 sis190 mac80211 139073 1 ath5k snd 55749 11 snd_hda_intel,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_hwdep soundcore 11553 1 snd ath 12737 1 ath5k cfg80211 141449 3 ath5k,mac80211,ath rfkill 19797 1 cfg80211 wireless_compat 5825 2 cfg80211,rfkill pcspkr 7104 0 sg 36573 0 serio_raw 10693 0 dm_raid45 67145 0 dm_message 6977 1 dm_raid45 dm_region_hash 15681 1 dm_raid45 dm_log 14657 3 dm_mirror,dm_raid45,dm_region_hash dm_mod 63225 4 dm_mirror,dm_multipath,dm_raid45,dm_log dm_mem_cache 9537 1 dm_raid45 usb_storage 80673 0 sata_sis 10949 2 pata_sis 15685 1 sata_sis libata 157317 2 sata_sis,pata_sis sd_mod 25281 3 scsi_mod 141973 6 scsi_dh,sr_mod,sg,usb_storage,libata,sd_mod ext3 125513 1 jbd 57321 1 ext3 uhci_hcd 25421 0 ohci_hcd 25065 0 ehci_hcd 33869 0 [COLOR=red] [[email protected] Amer]# service network status[/COLOR] bash: service: command not found [COLOR=red] [[email protected] Amer]# cat /etc/sysconfig/network-scripts/ifcfg-eth0[/COLOR] # Please read /usr/share/doc/initscripts-*/sysconfig.txt # for the documentation of these parameters. TYPE=Ethernet DEVICE=eth0 BOOTPROTO=dhcp ONBOOT=yes USERCTL=no IPV6INIT=yes PEERDNS=yes [COLOR=red] [[email protected] Amer]# cat /etc/modprobe.conf[/COLOR] alias scsi_hostadapter pata_sis alias scsi_hostadapter1 sata_sis alias scsi_hostadapter2 usb-storage alias wlan0 ath5k alias snd-card-0 snd-hda-intel options snd-card-0 index=0 options snd-hda-intel index=0 remove snd-hda-intel { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-hda-intel alias eth0 3c501 [COLOR=white][[email protected] Amer]#[/COLOR][COLOR=white] cat /etc/sysconfig/network-scripts/ifcfg-sit0 cat: /etc/sysconfig/network-scripts/ifcfg-sit0: No such file or directory [[email protected] Amer]# [/COLOR][COLOR=white]cat /etc/sysconfig/network-scripts/ifcfg-eth0.bak cat: /etc/sysconfig/network-scripts/ifcfg-eth0.bak: No such file or directory[/COLOR]
rpm -ivh kmod-sis190-1.00.00-1.el5.elrepo.i686.rpm
/sbin/lsmod
service network status
cat /etc/sysconfig/network-scripts/ifcfg-eth0
cat /etc/modprobe.conf
cat /etc/sysconfig/network-scripts/ifcfg-sit0
cat /etc/sysconfig/network-scripts/ifcfg-eth0.bak
[[email protected] ~]# /sbin/lspci 00:00.0 Host bridge: Silicon Integrated Systems [SiS] 671MX 00:01.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge 00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS968 [MuTIOL Media IO] (rev 01) 00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev 01) 00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f) 00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f) 00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller 00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] 191 Gigabit Ethernet Adapter (rev 02) 00:05.0 IDE interface: Silicon Integrated Systems [SiS] SATA Controller / IDE mode (rev 03) 00:06.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge 00:0f.0 Audio device: Silicon Integrated Systems [SiS] Azalia Audio Controller 01:00.0 VGA compatible controller: ATI Technologies Inc Unknown device 95c2 02:00.0 Ethernet controller: Atheros Communications Inc. AR5001 Wireless Network Adapter (rev 01)
[[email protected] ~]# /sbin/lspci | grep -i ethernet 00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] 191 Gigabit Ethernet Adapter (rev 02) 02:00.0 Ethernet controller: Atheros Communications Inc. AR5001 Wireless Network Adapter (rev 01) [[email protected] ~]# /sbin/lspci -n | grep '00:04.0' 00:04.0 0200: 1039:0191 (rev 02)
alias pci:v00001039d00000191sv*sd*bc*sc*i* sis190
/sbin/lspci
/sbin/lsmod
/sbin/lspci | grep -i ethernet
[B][COLOR=red]00:3.0[/COLOR][/B] Ethernet controller: Intel Corporation 82540EM Gigabit Ethernet Controller (rev 02)
/sbin/lspci -n | grep '[B][COLOR=red]00:3.0[/COLOR][/B]'
[B][COLOR=red]00:03.0[/COLOR][/B] 0200: [COLOR=darkorange][B]8086[/B][/COLOR]:[COLOR=seagreen][B]100e[/B][/COLOR] (rev 02)
grep -i [COLOR=darkorange][B]8086[/B][/COLOR] /lib/modules/*/modules.alias | grep -i [COLOR=seagreen][B]100e[/B][/COLOR]
ifup eth1
lspci
system-config-network
ChangeLog-2.6.18 20-Sep-2006 03:47 3.6M
ChangeLog-2.6.18 20-Sep-2006 03:47 3.6M
[[email protected] ~]$ uname -a Linux localhost 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:35 EDT 2010 i686 i686 i38$
اترك تعليق: