Brett Tiller:
Hi Vijay,
In ESXi you need to link the network adapter of the VM to the vlan ID. Via the vSphere Client please create a port group and assign it the vlan ID 202. Then assign the port group as the network adapter of the VM. If that doesn't fix your issue, please also check that your Linux OS is not blocking access.
Thanks,
Brett
Hi Brett,
Yes we did put the port group in the samce vlan and it still didn't work. So I've played around with the configurations, and tried to stayed closed to the section
Cisco IOS Layer 3 routed Configuration in the documentation. finally I got the VM able to ping the vlan interface and vice versa and ping the router, but my VM cannot ping netowrk 10.20.0.0 Below is the configuration. I am using vlan 202 and assigned sub interface gig 0/0.202 ip address to the vlan interface.
Current configuration : 5545 bytes
!
! Last configuration change at 15:25:37 UTC Fri Nov 9 2012 by admin
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname axp-dev-3826
!
boot-start-marker
boot system flash0:c3900-universalk9-mz.SPA.152-1.GC.bin
boot-end-marker
!
!
enable secret 5 $1$cVny$d/FPC.FDQlfSQ9Dd7v.5X0
!
no aaa new-model
!
no ipv6 cef
!
ip traffic-export profile calvin-rite
! No outgoing interface configured
! No destination mac-address configured
!
!
!
!
!
ip domain name netscout.com
ip name-server 192.168.39.150
ip name-server 192.168.38.201
ip cef
multilink bundle-name authenticated
!
!
crypto pki token default removal timeout 0
!
crypto pki trustpoint TP-self-signed-2534788575
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-2534788575
revocation-check none
rsakeypair TP-self-signed-2534788575
crypto pki certificate chain TP-self-signed-2534788575
certificate self-signed 01
30820253 308201BC A0030201 02020101 300D0609 2A864886 F70D0101 04050030
31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
69666963 6174652D 32353334 37383835 3735301E 170D3130 31323238 31353037
34335A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D32 35333437
38383537 3530819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
8100AE36 F59113AA F507A73F 1C2B0F2F DEFD7229 8EE04EAE E3A23BAC AB6FCC10
F6BD94DA 370E2A70 C1F03686 6CE25F5E 79556E5C 64F19B54 F2407FDB 7507D7FD
D5311A64 0433A739 9CD44AA4 73473A58 29BC0DE0 E07548F6 9D750741 93AF0313
919069EC 4115EFA8 E8849091 136D8A3C 1285C4D9 427F9D0C 920DD95D E1B76CBF
058F0203 010001A3 7B307930 0F060355 1D130101 FF040530 030101FF 30260603
551D1104 1F301D82 1B333238 362D6178 702D6465 76656C2E 6E657473 636F7574
2E636F6D 301F0603 551D2304 18301680 14744618 2A34FB9A EA16B9AB E2CE4ACC
22DEC9AB 91301D06 03551D0E 04160414 7446182A 34FB9AEA 16B9ABE2 CE4ACC22
DEC9AB91 300D0609 2A864886 F70D0101 04050003 81810013 27ED1CB5 E2BE7EBE
4D2E0786 59EF161B 26A0A9F6 841DE6E2 0EAC31EC 3B43A6DE 635C8D47 8952ADCE
5AD19678 D2EC06CA 05FF9AD6 17BA932F 9DEFC15D D6296927 99C50C88 29D47F36
815231FF B93412CD 87F3D06D 59F8F254 700A1D21 5C5A1C6B B0F0E1A3 87E19871
3A882167 0CFC332C F09A14B8 56BE8D90 AFEB4F8C 8E83C7
quit
license udi pid C3900-SPE100/K9 sn FOC13353X3Z
hw-module sm 1
!
hw-module sm 2
!
!
!
username root privilege 3 password 7 0208014F1805003458
username admin privilege 15 secret 5 $1$Os/.$WcX/gzSUjcLfPwvLcPUTW.
username user1 password 0 user1
!
!
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
ip address 172.25.1.12 255.255.255.0
speed auto
no mop enabled
!
interface GigabitEthernet0/0.202
encapsulation dot1Q 202
ip address 172.25.202.50 255.255.255.0
!
interface GigabitEthernet0/1
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
ip accounting output-packets
ip wccp 61 redirect in
ip flow ingress
duplex full
speed 1000
no keepalive
no mop enabled
!
interface GigabitEthernet0/2
no ip address
duplex auto
speed auto
!
interface SM1/0
ip unnumbered GigabitEthernet0/0
service-module ip address 172.25.1.18 255.255.255.0
!Application: VMware ESXi 5.0.0 build-474610 running on SRE
service-module ip default-gateway 172.25.1.12
!
interface SM1/1
description Internal switch interface connected to Service Module
switchport access vlan 202
switchport trunk allowed vlan 1-1024
switchport mode trunk
no ip address
!
interface SM2/0
ip unnumbered GigabitEthernet0/0
service-module ip address 172.25.1.16 255.255.255.0
!Application: VMware ESXi 4.1.0 build-348481 running on SRE
service-module ip default-gateway 172.25.1.12
hold-queue 60 out
interface SM2/1
description Internal switch interface connected to Service Module
no ip address
!
interface Vlan1
no ip address
!
interface Vlan30
no ip address
!
interface Vlan40
ip address 40.0.0.100 255.255.255.0
!
interface Vlan202
ip unnumbered GigabitEthernet0/0.202
!
ip default-gateway 172.25.1.1
ip forward-protocol nd
!
ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 172.25.1.1
ip route 40.0.0.1 255.255.255.255 Vlan40
ip route 40.0.0.101 255.255.255.255 Vlan40
ip route 172.25.1.14 255.255.255.255 SM2/0
ip route 172.25.1.16 255.255.255.255 SM2/0
ip route 172.25.1.18 255.255.255.255 SM1/0
ip route 172.25.202.51 255.255.255.255 Vlan202
ip route 172.25.202.101 255.255.255.255 Vlan202
!
!
!
snmp-server community public RO
snmp-server enable traps entity-sensor threshold
tftp-server flash 10.20.197.15
tftp-server flash 10.20.197.52
!
control-plane
!
!
!
line con 0
login local
Thanks!