Tanti Technology

My photo
Bangalore, karnataka, India
Multi-platform UNIX systems consultant and administrator in mutualized and virtualized environments I have 4.5+ years experience in AIX system Administration field. This site will be helpful for system administrator in their day to day activities.Your comments on posts are welcome.This blog is all about IBM AIX Unix flavour. This blog will be used by System admins who will be using AIX in their work life. It can also be used for those newbies who want to get certifications in AIX Administration. This blog will be updated frequently to help the system admins and other new learners. DISCLAIMER: Please note that blog owner takes no responsibility of any kind for any type of data loss or damage by trying any of the command/method mentioned in this blog. You may use the commands/method/scripts on your own responsibility. If you find something useful, a comment would be appreciated to let other viewers also know that the solution/method work(ed) for you.

Wednesday 13 February 2013

Virtual Ethernet - PowerVM



Commands for the VIO Servers :

1. To list all the adapters
# lsdev -type adapter

2. To list all the virtual adapters
# lsdev -virtual

3. To list the configuration of a Ethernet adapter (including its MAC Address)
# lscfg -l ent3

4. To list all the slots (Physical  and Virtual) along with the devices
# lsdev -slots

5. To create a SEA using the physical adapter (ent0), virtual adapter (ent2), PVID as 1
# mkvdev -sea ent0 -vadapter ent2 -default ent2 -defaultid 1
 

6. To create a SEA using the physical adapter (ent0), virtual adapter (ent2), PVID as 1, control channel (ent4)
# mkvdev -sea ent0 -vadapter ent2 -default ent2 -defaultid 1 -attr ha_mode=auto ctl_chan=ent4

7. To identify the speed and duplex on a physical adapter
# lsdev -dev ent0 -att | grep media_speed

8. To set the speed and duplex on a physical adapter
# chdev -dev ent0 -attr media_speed=100_Full_Duplex

9. To remove the current tcpip/ip configuration
# rmtcpip -all

10. To configure the IP Addr on a network interface
# mktcpip -hostname vios1 -inetaddr 192.168.2.1 -interface ent3 -netmask 255.255.255.0 -gateway 192.168.2.1

11. To list the IP Address info
# lstcpip -num -state

12. To list the routing table
# lstcpip -routtable

13. To list the Physical/Virtual/Shared Ethernet Adapter mapping
# lsmap -all -net

14. To identify the port VLAN ID of a virtual adapter:
# entstat -all ent2 | grep "Port VLAN ID"

15. To identify the port VLAN ID of a virtual adapter:
# entstat -all ent2 | grep "Switch ID"

16. To identify the Control Channel of a SEA:
# entstat -all ent5 | grep "Control Channel"

17. To identify the priority of a SEA:
# entstat -all ent5 | grep "Priority"

Commands for AIX Partition :

1. To identify the VLAN ID
# entstat -d ent0 | grep ID

2. To identify the MAC Address
# entstat -d ent0 | grep Address

No comments:

Post a Comment