Saturday 2 July 2016

All Interfaces of are down

Login to the system and execute lanscan to check the number of lan interfaces on the system


# lanscan
Hardware          Station        Crd  Hdw   Net-Interface    NM   MAC       HP-DLPI DLPI
Path                 Address      In#  State NamePPA          ID   Type      Support Mjr#
0/0/0/1/0 0x00306E28284E   0    UP    lan0 snap0       1    ETHER       Yes   119
1/0/0/1/0 0x00306E0AD090   3    UP    lan3 snap3       2    ETHER       Yes   119
1/0/10/0/0 0x00306E271FB0 4    UP    lan4 snap4       3    ETHER       Yes   119
0/0/10/0/0 0x00306E271FB9 1    UP    lan1 snap1       4    ETHER       Yes   119
0/0/12/0/0 0x00306E271FB7 2    UP    lan2 snap2       5    ETHER       Yes   119

Note the “Hdw State” (Hardware State) of the lan cards. Should be “UP”

Lan cards that are assigned an ip-address:
# grep -i interface_name netconf
# INTERFACE_NAME:     Network interface name (see lanscan(1m))
INTERFACE_NAME[0]="lan1"
INTERFACE_NAME[1]="lan2"

The cards with ip-address assigned should have the interface state UP.
# ifconfig lan1
lan1: flags=843<UP,BROADCAST,RUNNING,MULTICAST>
        inet 194.178.122.10 netmask ffffffc0 broadcast 194.178.122.63

For lan cards that are not assigned a ip-address will report “no such interface”

# ifconfig lan0
ifconfig: no such interface

If the interface state is blank then check the /etc/rc.config.d/netconf file for the INTERFACE_STATE[N]="" parameter value of the interface card.
If value is “down “ then this could be purposefully done.
If the value is “up” or empty “” then the interface has to be UP on a system boot. If so change the interface state of the lan card to UP:


# ifconfig lan1 UP

No comments:

Post a Comment

Using capture groups in grep in Linux

Introduction Let me start by saying that this article isn't about capture groups in grep per se. What we are going to do here with gr...