In reply to post ID 2170
Chyba robie coś nieprawidłowo
[root@DAMIAN ~]# ifcfg-eth0
-bash: ifcfg-eth0: command not found
[root@DAMIAN ~]# ifcfg -eth0
Missing IP address argument.
[root@DAMIAN ~]# DEVICE=eth0
[root@DAMIAN ~]# BOOTPROTO=dhcp
[root@DAMIAN ~]# HWADDR=00:11:D8:D2:90:1F
[root@DAMIAN ~]# ONBOOT=yes
[root@DAMIAN ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:36:8A:DA:17
inet6 addr: fe80::216:36ff:fe8a:da17/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18894 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1592434 (1.5 MiB) TX bytes:4491 (4.3 KiB)
Interrupt:21 Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3587 errors:0 dropped:0 overruns:0 frame:0
TX packets:3587 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22588384 (21.5 MiB) TX bytes:22588384 (21.5 MiB)
[root@DAMIAN ~]# ifcfg - eth0
/sbin/ifcfg: line 25: [: eth0: integer expression expected
/sbin/ifcfg: line 26: [: eth0: integer expression expected
/sbin/ifcfg: line 27: [: eth0: integer expression expected
/sbin/ifcfg: line 28: [: eth0: integer expression expected
SIOCGIFFLAGS: No such device
Error: cannot enable interface -.
[root@DAMIAN ~]# DEVICE=eth0
[root@DAMIAN ~]# BOOTPROTO=dhcp
[root@DAMIAN ~]# HWADDR=00:11:D8:D2:90:1F
[root@DAMIAN ~]# ONBOOT=yes
[root@DAMIAN ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:36:8A:DA:17
inet6 addr: fe80::216:36ff:fe8a:da17/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19591 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1645771 (1.5 MiB) TX bytes:4491 (4.3 KiB)
Interrupt:21 Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3587 errors:0 dropped:0 overruns:0 frame:0
TX packets:3587 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22588384 (21.5 MiB) TX bytes:22588384 (21.5 MiB)
[root@DAMIAN ~]#
[root@DAMIAN ~]# ifcfg-eth0
-bash: ifcfg-eth0: command not found
[root@DAMIAN ~]# ifcfg -eth0
Missing IP address argument.
[root@DAMIAN ~]# DEVICE=eth0
[root@DAMIAN ~]# BOOTPROTO=dhcp
[root@DAMIAN ~]# HWADDR=00:11:D8:D2:90:1F
[root@DAMIAN ~]# ONBOOT=yes
[root@DAMIAN ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:36:8A:DA:17
inet6 addr: fe80::216:36ff:fe8a:da17/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18894 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1592434 (1.5 MiB) TX bytes:4491 (4.3 KiB)
Interrupt:21 Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3587 errors:0 dropped:0 overruns:0 frame:0
TX packets:3587 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22588384 (21.5 MiB) TX bytes:22588384 (21.5 MiB)
[root@DAMIAN ~]# ifcfg - eth0
/sbin/ifcfg: line 25: [: eth0: integer expression expected
/sbin/ifcfg: line 26: [: eth0: integer expression expected
/sbin/ifcfg: line 27: [: eth0: integer expression expected
/sbin/ifcfg: line 28: [: eth0: integer expression expected
SIOCGIFFLAGS: No such device
Error: cannot enable interface -.
[root@DAMIAN ~]# DEVICE=eth0
[root@DAMIAN ~]# BOOTPROTO=dhcp
[root@DAMIAN ~]# HWADDR=00:11:D8:D2:90:1F
[root@DAMIAN ~]# ONBOOT=yes
[root@DAMIAN ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:36:8A:DA:17
inet6 addr: fe80::216:36ff:fe8a:da17/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:19591 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1645771 (1.5 MiB) TX bytes:4491 (4.3 KiB)
Interrupt:21 Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3587 errors:0 dropped:0 overruns:0 frame:0
TX packets:3587 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:22588384 (21.5 MiB) TX bytes:22588384 (21.5 MiB)
[root@DAMIAN ~]#


parsival
Show profile
Link to this post
(Moze dodam, że mam Fedore 7)