네트워크가 안될때 확인할 사항.
먼저, 이더넷 카드가 제대로 인식되어 있는지 확인한다.
여기서, en0 는 logical 장치, ent0는 physical 장치를 의미한다.
#lsdev | grep -i ethernet
en0 Available 1L-08 Standard Ethernet Network Interface
en1 Defined 14-08 Standard Ethernet Network Interface
ent0 Available 1L-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01)
ent1 Available 14-08 10/100 Mbps Ethernet PCI Adapter II (1410ff01)
et0 Defined 1L-08 IEEE 802.3 Ethernet Network Interface
et1 Defined 14-08 IEEE 802.3 Ethernet Network Interface
제대로 인식이 되어 있으면 entstat 커맨드로 링크 상태를 확인해본다.
# entstat -d ent0 | grep -i link
Link Status : up
# entstat -d ent0
-------------------------------------------------------------
ETHERNET STATISTICS (ent0) :
Device Type: 10/100 Mbps Ethernet PCI Adapter II (1410ff01)
Hardware Address: 00:02:55:4f:1f:47
Elapsed Time: 0 days 0 hours 33 minutes 56 seconds
Transmit Statistics: Receive Statistics:
-------------------- -------------------
Packets: 3212 Packets: 4848
Bytes: 540533 Bytes: 346011
Interrupts: 2 Interrupts: 4785
Transmit Errors: 0 Receive Errors: 0
Packets Dropped: 26 Packets Dropped: 0
Bad Packets: 0
Max Packets on S/W Transmit Queue: 3
S/W Transmit Queue Overflow: 0
Current S/W+H/W Transmit Queue Length: 1
Broadcast Packets: 33 Broadcast Packets: 1264
Multicast Packets: 2 Multicast Packets: 16
No Carrier Sense: 26 CRC Errors: 0
DMA Underrun: 0 DMA Overrun: 0
Lost CTS Errors: 0 Alignment Errors: 0
Max Collision Errors: 0 No Resource Errors: 0
Late Collision Errors: 0 Receive Collision Errors: 0
Deferred: 0 Packet Too Short Errors: 0
SQE Test: 0 Packet Too Long Errors: 0
Timeout Errors: 0 Packets Discarded by Adapter: 0
Single Collision Count: 0 Receiver Start Count: 0
Multiple Collision Count: 0
Current HW Transmit Queue Length: 1
General Statistics:
-------------------
No mbuf Errors: 0
Adapter Reset Count: 0
Adapter Data Rate: 200
Driver Flags: Up Broadcast Running
Simplex AlternateAddress 64BitSupport
ChecksumOffload PrivateSegment LargeSend
DataRateSet
10/100 Mbps Ethernet PCI Adapter II (1410ff01) Specific Statistics:
--------------------------------------------------------------------
Link Status : up
Media Speed Selected: Auto negotiation
Media Speed Running: 100 Mbps Full Duplex
Receive Pool Buffer Size: 1024
No Receive Pool Buffer Errors: 0
Receive Buffer Too Small Errors: 0
Entries to transmit timeout routine: 0
Transmit IPsec packets: 0
Transmit IPsec packets dropped: 0
Receive IPsec packets: 0
Receive IPsec packets dropped: 0
Inbound IPsec SA offload count: 0
Transmit Large Send packets: 117
Transmit Large Send packets dropped: 0
Packets with Transmit collisions:
1 collisions: 0 6 collisions: 0 11 collisions: 0
2 collisions: 0 7 collisions: 0 12 collisions: 0
3 collisions: 0 8 collisions: 0 13 collisions: 0
4 collisions: 0 9 collisions: 0 14 collisions: 0
5 collisions: 0 10 collisions: 0 15 collisions: 0
link가 up되어 있어도 문제가 있다면, 속도를 수동으로 조정해본다.
# chdev -P -l ent0 -a media_speed=100_Full_Duplex
ent0 changed
부팅할때 dhcpcd 정지 또는 시작하려면, /etc/rc.tcpip 화일에서 아래 내용을 확인 한다.
# grep -i dhcpcd /etc/rc.tcpip
# Start up dhcpcd daemon
start /usr/sbin/dhcpcd "$src_running"