In my red hat Linux machine there is a Lan card using eth0. IP is asign to that network card and it is functioning properly. I add another ethernet card in my linux machine it was detacted and when i use the command
[root@localhost root] # ifconfig -a
eth0 Link encap:Ethernet HWassr
BROADCAST MULTICAST MUT:1500 Metric:1
RX packets:0 errors:0 drops:0 overruns:0 frams:0
TX packets:0 errors:0 drops:0 overruns:0 frams:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes0: (0.0 b)
Interrrupt:10 Base Address:0X200
eth1 Link encap:Ethernet HWassr
inet addr:192.168.1.10 Bcast:192.168.1.255 Mask:255.255.255.0
lo Link encap:Local loopback
inet addre:127.0.0.1 Mask:255.0.0.0
it show me both eth0 and eth1 Lan cards.
I can see Ip address in my eth1 ethernet card which is 192.168.1.10 but When I enter into
[root@localhost root] # cd /etc/sysconfig/network-scripts and i use # ls command it only show me the file ifcfg-eth1 and with
root@localhost root] # cat ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.1.10
NETMASK:255.255.255.0
USERCTL=no
PEERDNS=no
TYPE=Ethernet
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
[root@localhost root]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
cat: ifcfg-eth0:No such file or directory
Please guide me that how can I configure my second ethernet card which is eth0.There is no file of eth0 to add my IP into it!
another way is
# cp ifcfg-eth0 ifcfg-eth0:1
but I does't know the proper way .......please guide me.
[Non-text portions of this message have been removed]
Tuesday, June 22, 2010
[LINUX_Newbies] How to assign Ip addrress to new ethernet card ?
__._,_.___
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.
.
__,_._,___
No comments:
Post a Comment