You are not logged in.

#1 2012-01-07 08:55:48

San2ban
Banned
From: Bangalore, India
Registered: 2010-02-09
Posts: 258

[SOLVED] DHCP Ethernet connection

Dear Archers
I connect to the network through wired LAN. Sometimes, I forget to power up the LAN, but I switch on the PC and boot it and log into ARCH. When I trry to open GMAIL, I realize I had not powered up LAN MODEM.
Now, even if I switch on the modem, the network daemon, though it is running, will not recognize that LAN is connected.
I tried to 'restart' network ( as it says when I try "rc.d start network", first telling that network is already running), ut it says no 'restart' script. I have to reboot to connect to network.
Without rebooting, how to connect to network?

Last edited by San2ban (2012-01-21 15:07:48)


Satyam eva jayate

Registered linux user #535257

Offline

#2 2012-01-07 09:07:14

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: [SOLVED] DHCP Ethernet connection

San2ban wrote:

Dear Archers
I connect to the network through wired LAN. Sometimes, I forget to power up the LAN, but I switch on the PC and boot it and log into ARCH. When I trry to open GMAIL, I realize I had not powered up LAN MODEM.
Now, even if I switch on the modem, the network daemon, though it is running, will not recognize that LAN is connected.
I tried to 'restart' network ( as it says when I try "rc.d start network", first telling that network is already running), ut it says no 'restart' script. I have to reboot to connect to network.
Without rebooting, how to connect to network?

Can you please copy and paste the actual command you ran when trying to restart the networking daemon? - and also include its output, in code blocks.

While you're at it, please consider also supplying us with outputs from the following:

ip route
ip addr
ifconfig
lspci -nnmvk
lsmod

Offline

#3 2012-01-07 09:41:03

San2ban
Banned
From: Bangalore, India
Registered: 2010-02-09
Posts: 258

Re: [SOLVED] DHCP Ethernet connection

[san2ban@KRISHNA ~]$ rc.d start network
Network is already running.  Try 'network restart'
[san2ban@KRISHNA ~]$ 
[san2ban@KRISHNA ~]$ rc.d network restart
:: Daemon script restart does not exist or is not executable.
[san2ban@KRISHNA ~]$ 
[san2ban@KRISHNA ~]$ ip route
default via 192.168.1.1 dev eth0  metric 202 
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.2  metric 202 
[san2ban@KRISHNA ~]$ 
[san2ban@KRISHNA ~]$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
    link/ether 00:1b:b9:b4:9e:ba brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.2/24 brd 192.168.1.255 scope global eth0
    inet6 fe80::21b:b9ff:feb4:9eba/64 scope link 
       valid_lft forever preferred_lft forever
[san2ban@KRISHNA ~]$ 
[san2ban@KRISHNA ~]$ ifconfig
bash: ifconfig: command not found
[san2ban@KRISHNA ~]$ if config
> 
> 
> 
[san2ban@KRISHNA ~]$ lspci -nnmvk
Device:	00:00.0
Class:	Host bridge [0600]
Vendor:	Intel Corporation [8086]
Device:	82945G/GZ/P/PL Memory Controller Hub [2770]
SVendor:	Elitegroup Computer Systems [1019]
SDevice:	Device [2633]
Rev:	02
Driver:	agpgart-intel
Module:	intel-agp

Device:	00:02.0
Class:	VGA compatible controller [0300]
Vendor:	Intel Corporation [8086]
Device:	82945G/GZ Integrated Graphics Controller [2772]
SVendor:	Elitegroup Computer Systems [1019]
SDevice:	Device [2633]
Rev:	02
Driver:	i915
Module:	i915

Device:	00:1b.0
Class:	Audio device [0403]
Vendor:	Intel Corporation [8086]
Device:	N10/ICH 7 Family High Definition Audio Controller [27d8]
SVendor:	Elitegroup Computer Systems [1019]
SDevice:	Device [2633]
Rev:	01
Driver:	snd_hda_intel
Module:	snd-hda-intel

Device:	00:1d.0
Class:	USB controller [0c03]
Vendor:	Intel Corporation [8086]
Device:	N10/ICH 7 Family USB UHCI Controller #1 [27c8]
SVendor:	Elitegroup Computer Systems [1019]
SDevice:	Device [2633]
Rev:	01
Driver:	uhci_hcd
Module:	uhci-hcd

Device:	00:1d.1
Class:	USB controller [0c03]
Vendor:	Intel Corporation [8086]
Device:	N10/ICH 7 Family USB UHCI Controller #2 [27c9]
SVendor:	Elitegroup Computer Systems [1019]
SDevice:	Device [2633]
Rev:	01
Driver:	uhci_hcd
Module:	uhci-hcd

Device:	00:1d.2
Class:	USB controller [0c03]
Vendor:	Intel Corporation [8086]
Device:	N10/ICH 7 Family USB UHCI Controller #3 [27ca]
SVendor:	Elitegroup Computer Systems [1019]
SDevice:	Device [2633]
Rev:	01
Driver:	uhci_hcd
Module:	uhci-hcd

Device:	00:1d.3
Class:	USB controller [0c03]
Vendor:	Intel Corporation [8086]
Device:	N10/ICH 7 Family USB UHCI Controller #4 [27cb]
SVendor:	Elitegroup Computer Systems [1019]
SDevice:	Device [2633]
Rev:	01
Driver:	uhci_hcd
Module:	uhci-hcd

Device:	00:1d.7
Class:	USB controller [0c03]
Vendor:	Intel Corporation [8086]
Device:	N10/ICH 7 Family USB2 EHCI Controller [27cc]
SVendor:	Elitegroup Computer Systems [1019]
SDevice:	Device [2633]
Rev:	01
ProgIf:	20
Driver:	ehci_hcd
Module:	ehci-hcd

Device:	00:1e.0
Class:	PCI bridge [0604]
Vendor:	Intel Corporation [8086]
Device:	82801 PCI Bridge [244e]
Rev:	e1
ProgIf:	01

Device:	00:1f.0
Class:	ISA bridge [0601]
Vendor:	Intel Corporation [8086]
Device:	82801GB/GR (ICH7 Family) LPC Interface Bridge [27b8]
SVendor:	Elitegroup Computer Systems [1019]
SDevice:	Device [2633]
Rev:	01
Module:	leds-ss4200
Module:	iTCO_wdt
Module:	intel-rng

Device:	00:1f.1
Class:	IDE interface [0101]
Vendor:	Intel Corporation [8086]
Device:	82801G (ICH7 Family) IDE Controller [27df]
SVendor:	Elitegroup Computer Systems [1019]
SDevice:	Device [2633]
Rev:	01
ProgIf:	8a
Driver:	ata_piix
Module:	ata_generic
Module:	ata_piix
Module:	pata_acpi

Device:	00:1f.2
Class:	IDE interface [0101]
Vendor:	Intel Corporation [8086]
Device:	N10/ICH7 Family SATA IDE Controller [27c0]
SVendor:	Elitegroup Computer Systems [1019]
SDevice:	Device [2633]
Rev:	01
ProgIf:	8f
Driver:	ata_piix
Module:	ata_generic
Module:	ata_piix
Module:	pata_acpi

Device:	00:1f.3
Class:	SMBus [0c05]
Vendor:	Intel Corporation [8086]
Device:	N10/ICH 7 Family SMBus Controller [27da]
SVendor:	Elitegroup Computer Systems [1019]
SDevice:	Device [2633]
Rev:	01
Driver:	i801_smbus
Module:	i2c-i801

Device:	01:05.0
Class:	Ethernet controller [0200]
Vendor:	Realtek Semiconductor Co., Ltd. [10ec]
Device:	RTL-8139/8139C/8139C+ [8139]
SVendor:	Elitegroup Computer Systems [1019]
SDevice:	Device [8139]
Rev:	10
Driver:	8139too
Module:	8139too
Module:	8139cp

[san2ban@KRISHNA ~]$ 
[san2ban@KRISHNA ~]$ lsmod
Module                  Size  Used by
isofs                  32665  1 
ipv6                  288122  14 
fuse                   66858  2 
ext2                   63283  1 
snd_hda_codec_idt      56733  1 
i915                  725922  3 
snd_hda_intel          22410  2 
snd_hda_codec          81242  2 snd_hda_codec_idt,snd_hda_intel
drm_kms_helper         25721  1 i915
drm                   185768  4 i915,drm_kms_helper
snd_hwdep               6357  1 snd_hda_codec
snd_pcm                74368  2 snd_hda_intel,snd_hda_codec
serio_raw               4294  0 
snd_timer              19544  1 snd_pcm
snd                    58362  10 snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
psmouse                55501  0 
soundcore               6210  1 snd
pcspkr                  1819  0 
i2c_algo_bit            5199  1 i915
processor              24224  0 
iTCO_wdt               11789  0 
snd_page_alloc          7153  2 snd_hda_intel,snd_pcm
i2c_i801                8187  0 
evdev                   9530  4 
8139cp                 19589  0 
iTCO_vendor_support     1961  1 iTCO_wdt
8139too                20392  0 
mii                     4059  2 8139cp,8139too
i2c_core               20460  5 i915,drm_kms_helper,drm,i2c_algo_bit,i2c_i801
ppdev                   5774  0 
parport_pc             30042  0 
parport                31631  2 ppdev,parport_pc
thermal                 7799  0 
button                  4470  1 i915
video                  11164  1 i915
intel_agp              10904  1 i915
intel_gtt              14455  3 i915,intel_agp
ext3                  191948  1 
jbd                    63275  1 ext3
mbcache                 5881  2 ext2,ext3
sr_mod                 14951  1 
cdrom                  36553  1 sr_mod
sd_mod                 28275  4 
pata_acpi               3376  0 
uhci_hcd               23084  0 
ata_piix               22077  4 
libata                166692  2 pata_acpi,ata_piix
scsi_mod              132826  3 sr_mod,sd_mod,libata
ehci_hcd               40762  0 
usbcore               144432  3 uhci_hcd,ehci_hcd
[san2ban@KRISHNA ~]$ 

Pl. check


Satyam eva jayate

Registered linux user #535257

Offline

#4 2012-01-07 09:52:44

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,546

Re: [SOLVED] DHCP Ethernet connection

Did you try

rc.d restart network

Offline

#5 2012-01-07 09:56:55

San2ban
Banned
From: Bangalore, India
Registered: 2010-02-09
Posts: 258

Re: [SOLVED] DHCP Ethernet connection

[san2ban@KRISHNA ~]$ rc.d restart network
:: Stopping Network                                                      [BUSY] rm: cannot remove `/run/daemons/network': Permission denied
dhcpcd[18357]: dhcpcd will not work correctly unless run as root
dhcpcd[18357]: sending signal 1 to pid 805
dhcpcd[18357]: dhcpcd not running
dhcpcd[18357]: kill: Operation not permitted
                                                                         [DONE] 
Network is already running.  Try 'network restart'
[san2ban@KRISHNA ~]$ 

pl. check


Satyam eva jayate

Registered linux user #535257

Offline

#6 2012-01-07 10:05:22

San2ban
Banned
From: Bangalore, India
Registered: 2010-02-09
Posts: 258

Re: [SOLVED] DHCP Ethernet connection

Earlier post was without switching 'OFF' the modem. Below is the result, when modem swithced OFF and ON

[san2ban@KRISHNA ~]$ rc.d restart network

:: Stopping Network                                                      [BUSY] rm: cannot remove `/run/daemons/network': Permission denied

dhcpcd[18931]: dhcpcd will not work correctly unless run as root

dhcpcd[18931]: sending signal 1 to pid 805

dhcpcd[18931]: dhcpcd not running

dhcpcd[18931]: kill: Operation not permitted

                                                                         [DONE]

Network is already running.  Try 'network restart'

[san2ban@KRISHNA ~]$


Satyam eva jayate

Registered linux user #535257

Offline

#7 2012-01-07 10:06:19

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: [SOLVED] DHCP Ethernet connection

San2ban wrote:
[san2ban@KRISHNA ~]$ rc.d start network
Network is already running.  Try 'network restart'
[san2ban@KRISHNA ~]$ rc.d network restart
:: Daemon script restart does not exist or is not executable.

I also get an error when I try to run the command as my regular user. Check it out:

Me writing stuff at a prompt wrote:
$ rc.d restart network
:: Stopping Network                                                 [BUSY]
rm: cannot remove `/run/daemons/network': Permission denied
RTNETLINK answers: Operation not permitted
                                                                                [DONE] 
Network is already running.  Try 'network restart'

Try prefixing your command with "sudo". Also, I haven't really made a habit of using the "rc.d" command. Usually, I would run the script directly like so:

sudo /etc/rc.d/network restart

Not sure if that makes a difference.


San2ban wrote:
[san2ban@KRISHNA ~]$ ip route
default via 192.168.1.1 dev eth0  metric 202 
192.168.1.0/24 dev eth0  proto kernel  scope link  src 192.168.1.2  metric 202 

Hmm, this implies that you do have an ethernet connection. How did you arrive at the conclusion that the computer isn't seeing your LAN?


San2ban wrote:
[san2ban@KRISHNA ~]$ ifconfig
bash: ifconfig: command not found
[san2ban@KRISHNA ~]$ if config
> 
> 
> 

This implies either you haven't synched net-tools from pacman, or else you haven't added your user to the network group, or else the location (/sbin) of ifconfig isn't in your path.

Last edited by /dev/zero (2012-01-07 10:07:55)

Offline

#8 2012-01-07 10:15:22

San2ban
Banned
From: Bangalore, India
Registered: 2010-02-09
Posts: 258

Re: [SOLVED] DHCP Ethernet connection

Installed net-tools

[root@KRISHNA san2ban]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500  metric 1
        inet 192.168.1.2  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::21b:b9ff:feb4:9eba  prefixlen 64  scopeid 0x20<link>
        ether 00:1b:b9:b4:9e:ba  txqueuelen 1000  (Ethernet)
        RX packets 2841  bytes 2008888 (1.9 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3029  bytes 617277 (602.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 20  base 0x2c00  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 16436  metric 1
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 0  (Local Loopback)
        RX packets 264  bytes 21264 (20.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 264  bytes 21264 (20.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Satyam eva jayate

Registered linux user #535257

Offline

#9 2012-01-07 10:17:10

San2ban
Banned
From: Bangalore, India
Registered: 2010-02-09
Posts: 258

Re: [SOLVED] DHCP Ethernet connection

Will the above action solve the problem?. I will remove LAN, connect again, report back


Satyam eva jayate

Registered linux user #535257

Offline

#10 2012-01-07 10:23:16

/dev/zero
Member
From: Melbourne, Australia
Registered: 2011-10-20
Posts: 1,247

Re: [SOLVED] DHCP Ethernet connection

San2ban wrote:

Will the above action solve the problem?. I will remove LAN, connect again, report back

I'm not sure what you mean.

The outputs you've provided so far do seem to indicate that the computer's already seeing the LAN. Well, okay, see if you can reproduce the problem, and check whether the outputs of "ip route", "ip addr" and "ifconfig" look any different while the problem is extant.

Also, if you can reproduce the problem, please describe how you know there really is a problem.

Offline

#11 2012-01-07 11:44:43

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [SOLVED] DHCP Ethernet connection

net-tools and thus ifconfig have been deprecated 6 months ago.

@San2ban, why don't you use sudo? This error message seems pretty clear to me:

dhcpcd[18931]: dhcpcd will not work correctly unless run as root

Offline

#12 2012-01-21 15:07:13

San2ban
Banned
From: Bangalore, India
Registered: 2010-02-09
Posts: 258

Re: [SOLVED] DHCP Ethernet connection

I observe that, in case if modem for  LAN is not switched on at boot, and if it is switced on after user has logged in,  after some time delay, the LAN is recognized

Thanks to all


Satyam eva jayate

Registered linux user #535257

Offline

Board footer

Powered by FluxBB