Автор | Сообщение |
---|---|
Заголовок сообщения: Вопрос по Secondary IP-интерфейсе
|
|
|
Подскажите, пожалуйста, можно ли на DGS-3627 создать 2-а IP-интерфейса в одной VLAN? Если да, то как? |
Вернуться наверх |
|
RDC |
Заголовок сообщения: Re: Вопрос по Secondary IP-интерфейсе
|
|
Код: DGS-3627G:admin#create ipif test1 192.168.0.1/24 V409 Success. DGS-3627G:admin#create ipif test2 192.168.1.1/24 V409 secondary Success. DGS-3627G:admin#sh ipif IP Interface : test1 IP Interface : test2 |
Вернуться наверх |
|
MPiliutsik |
Заголовок сообщения: Re: Вопрос по Secondary IP-интерфейсе
|
|
У меня к сожалению следующая картина Command: show ipif IP Interface : Net192_168 DGS-3627:admin#create ipif test 192.168.2.253/24 default secondary state disable Command: create ipif test 192.168.2.253/24 default secondary state disable conflicted subnet addresses Fail! |
Вернуться наверх |
|
nixx |
Заголовок сообщения: Re: Вопрос по Secondary IP-интерфейсе
|
|
перевожу с английского: «куда вы в меня второй адрес в одной и той же подсети пихаете?» |
Вернуться наверх |
|
MPiliutsik |
Заголовок сообщения: Re: Вопрос по Secondary IP-интерфейсе
|
|
nixx писал(а): перевожу с английского: «куда вы в меня второй адрес в одной и той же подсети пихаете?» Спасибо, маску /32 пробовал. |
Вернуться наверх |
|
MPiliutsik |
Заголовок сообщения: Re: Вопрос по Secondary IP-интерфейсе
|
|
Ау, поддержка. Так можно все-таки на DGS-3627 в одной IP-сети создать 2-а интерфейса? |
Вернуться наверх |
|
Artem Kolpakov |
Заголовок сообщения: Re: Вопрос по Secondary IP-интерфейсе
|
|
MPiliutsik писал(а): Ау, поддержка. Так можно все-таки на DGS-3627 в одной IP-сети создать 2-а интерфейса? Нельзя. |
Вернуться наверх |
|
MPiliutsik |
Заголовок сообщения: Re: Вопрос по Secondary IP-интерфейсе
|
|
|
Вернуться наверх |
|
Содержание
- Error conflicted subnet addresses
- Кто сейчас на форуме
- Error conflicted subnet addresses
- Кто сейчас на форуме
- Error conflicted subnet addresses
- Кто сейчас на форуме
- Error conflicted subnet addresses
- Кто сейчас на форуме
- Error conflicted subnet addresses
- Кто сейчас на форуме
Error conflicted subnet addresses
Доброго времени суток!
Настраиваю коммутатор с нуля. При редактировании VLAN управления, не назначается IP
VLAN 10 — управление
ip address 10.255.0.30 255.255.255.0
ERROR: Conflicted subnet addresses.
no aaa new-model
vlan 10
exit
service password-encryption 7
username admin privilege 15 nopassword
ssh user admin authentication-method password
line console
exit
line telnet
login local
exit
interface ethernet 1/0/25
switchport mode access
exit
interface ethernet 1/0/29
switchport mode trunk
dot1q tunneling ethertype 0x88a8
exit
interface mgmt 0
ip address 192.168.0.1 255.255.255.0
exit
interface vlan 1
ip address 10.90.90.90 255.0.0.0
exit
interface vlan 10
exit
interface null 0
exit
exit
Alexey Mishenko | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Зарегистрирован: Чт сен 08, 2011 04:59 |
|
Зарегистрирован: Ср фев 08, 2012 10:24
Сообщений: 17
Честно хз
Но могу предложить. Попробуй изолировать роутер и комп.
т.е. оставь роутер и подключи к нему комп напрямую без промежуточных хабов или свичей. Отключи от роутера другие каналы.
Зарегистрирован: Вт фев 07, 2012 21:06
Сообщений: 7
Хочу зарезервировать (Функция DHCP Reservation) IP адреса для 3-х компов:
1. чтобы серверу роутер назначал IP 192.168.0.100
2. два остальных рабочих компа получали IP адреса 192.168.0.101 и 192.168.0.102.
Но на деле при резервации IP адресов в роутере выскакивает ошибка LAN Subnet conflicts with WAN subnet.
Я знаю, что можно вручную прописать IP адреса в сетевых картах, но я хочу, чтобы это делал DIR-615.
Т.е. хочу полноценно использовать функцию роутера DHCP Reservation.
Вот такая вот задумка!
Зарегистрирован: Ср фев 08, 2012 10:24
Сообщений: 17
а. ну тогда всё просто. С начала надо настройки сетевых карт сбросить на автомат.
А вот уж потом он от dhcp получит адрес.
Вот только меня смущают смутные сомнения по поводу слова сервер.
Что под ним подразумевается?
И второе. Точно, что в сети нет других компов у которых IP вручную стоит 192.168.0.100 / 101 / 102?
Зарегистрирован: Вт фев 07, 2012 21:06
Сообщений: 7
Зарегистрирован: Ср фев 08, 2012 10:24
Сообщений: 17
Зарегистрирован: Пн июн 06, 2011 07:08
Сообщений: 3
Зарегистрирован: Вт фев 07, 2012 21:06
Сообщений: 7
Зарегистрирован: Ср фев 08, 2012 10:24
Сообщений: 17
maxkamv Поздравляю с победой.
cautur У тебя наверняка та де проблема что и у maxkamv. Во всяком случае аналогичная. А именно старые настройки и новые входят в конфликт и выяснить где и что конфликтует не получается.
Самых хороший способ всё отключить, сбросить и начать с начала.
Часовой пояс: UTC + 3 часа
Кто сейчас на форуме
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 11
Источник
Contact US
Thanks. We have received your request and will respond promptly.
Come Join Us!
Posting Guidelines
Promoting, selling, recruiting, coursework and thesis posting is forbidden.
IP Phone not registering with «Subnet Conflict» error
IP Phone not registering with «Subnet Conflict» error
IP Phone not registering with «Subnet Conflict» error
We have an IP phone that wont register at a remote office connected via hardware VPN.
IP Route in IP Office
0.0.0.0
0.0.0.0
192.168.7.1
RE: IP Phone not registering with «Subnet Conflict» error
RE: IP Phone not registering with «Subnet Conflict» error
Matt
I have always wished that my computer would be as easy to use as my telephone.
My wish has come true. I no longer know how to use my telephone.
RE: IP Phone not registering with «Subnet Conflict» error
RE: IP Phone not registering with «Subnet Conflict» error
Thanks guys, The phone was configured remotely and shipped to the site and the local IT guy attempted to bring it up. I’ll be at the site this Saturday and will review the settings.
found this on the Avaya user forums thought this might shed some light on things.
The simple solution to this is to create a NAT entry on the remote side for the Avaya system. Basically you need an IP address on you remote LAN to translate to your Host site. Then use the remote site’s assigned IP as the call server, router, etc setting on the IP Phone. The firewall translation will translate the remote site’s IP to the host site’s Avaya system IP address.
RE: IP Phone not registering with «Subnet Conflict» error
Try a tracert from the main site to the ipoffice at the remote site.
Then you will see past which ip addresses it will go.
___________________________________________
It works! Now if only I could remember what I did.
RE: IP Phone not registering with «Subnet Conflict» error
RE: IP Phone not registering with «Subnet Conflict» error
Finally had someone go over and chaeck the settings on the phone. The phone is setup the way i originally described.
Tried changing the subnet mask to 255.255.0.0 no change in the error. ‘subnet conflict’could this be a bad phone?
The customers inhouse engineer is telling me they are using ospf. don’t think he knows what ospf is.
Any thoughts here I’m miffed.
Still need to get to the site and confirm that the switch can be pinged from the remote site. Even I couldn’t ping the remote site I don’t think it would give the ‘subnet’ error.
RE: IP Phone not registering with «Subnet Conflict» error
______________
Women and cats can do as they please and men and dogs should relax and get used to the idea!
RE: IP Phone not registering with «Subnet Conflict» error
RE: IP Phone not registering with «Subnet Conflict» error
______________
Women and cats can do as they please and men and dogs should relax and get used to the idea!
RE: IP Phone not registering with «Subnet Conflict» error
it really only throws up that error when the IP and router address are on different subnets.
looking at your IP address it wouldnt be hard to transpose 192.168.11.x and type 192.168.1.x in either field.
I would ask the non-techie to read them out again.
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.
Click Here to join Tek-Tips and talk with other members! Already a Member? Login
Источник
Subnet conflict avaya что это
Зарегистрирован: Ср фев 08, 2012 10:24
Сообщений: 17
Честно хз
Но могу предложить. Попробуй изолировать роутер и комп.
т.е. оставь роутер и подключи к нему комп напрямую без промежуточных хабов или свичей. Отключи от роутера другие каналы.
Зарегистрирован: Вт фев 07, 2012 21:06
Сообщений: 7
Хочу зарезервировать (Функция DHCP Reservation) IP адреса для 3-х компов:
1. чтобы серверу роутер назначал IP 192.168.0.100
2. два остальных рабочих компа получали IP адреса 192.168.0.101 и 192.168.0.102.
Но на деле при резервации IP адресов в роутере выскакивает ошибка LAN Subnet conflicts with WAN subnet.
Я знаю, что можно вручную прописать IP адреса в сетевых картах, но я хочу, чтобы это делал DIR-615.
Т.е. хочу полноценно использовать функцию роутера DHCP Reservation.
Вот такая вот задумка!
Зарегистрирован: Ср фев 08, 2012 10:24
Сообщений: 17
а. ну тогда всё просто. С начала надо настройки сетевых карт сбросить на автомат.
А вот уж потом он от dhcp получит адрес.
Вот только меня смущают смутные сомнения по поводу слова сервер.
Что под ним подразумевается?
И второе. Точно, что в сети нет других компов у которых IP вручную стоит 192.168.0.100 / 101 / 102?
Зарегистрирован: Вт фев 07, 2012 21:06
Сообщений: 7
Зарегистрирован: Ср фев 08, 2012 10:24
Сообщений: 17
Зарегистрирован: Пн июн 06, 2011 07:08
Сообщений: 3
Зарегистрирован: Вт фев 07, 2012 21:06
Сообщений: 7
Зарегистрирован: Ср фев 08, 2012 10:24
Сообщений: 17
maxkamv Поздравляю с победой.
cautur У тебя наверняка та де проблема что и у maxkamv. Во всяком случае аналогичная. А именно старые настройки и новые входят в конфликт и выяснить где и что конфликтует не получается.
Самых хороший способ всё отключить, сбросить и начать с начала.
Часовой пояс: UTC + 3 часа
Кто сейчас на форуме
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 11
Источник
Contact US
Thanks. We have received your request and will respond promptly.
Come Join Us!
Posting Guidelines
Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Connecting 1608 IP Phones, subnet conflict error
Connecting 1608 IP Phones, subnet conflict error
Connecting 1608 IP Phones, subnet conflict error
I am connecting 1608 handsets from a site that is linking back to IPO 8.1 in a Data Center.
I am able to ping from site to data center and im able to connect via Manager but when putting credentials through handset i get ‘Subnet Conflict’
The clients IT team are dealing with the link.
I have tried different variants, like changing router to 192.168.123.254 but then i get ‘Bad Router’.
Is there anything anyone can suggest?
RE: Connecting 1608 IP Phones, subnet conflict error
RE: Connecting 1608 IP Phones, subnet conflict error
Ok, for what reason would the handsets not see the router?
I can’t see any reason if its on the same range, strange!!
RE: Connecting 1608 IP Phones, subnet conflict error
RE: Connecting 1608 IP Phones, subnet conflict error
RE: Connecting 1608 IP Phones, subnet conflict error
Quote:
IP Phone 192.168.123.x
Router 10.0.23.1
The reason is these are different subnets. The reason they can’t talk is the same as the whole design of subnets.
Like Andy says, the router setting in the phone needs to be the 192.168.123.254 router address.
Football is not a matter of life and death-It is far more important.
RE: Connecting 1608 IP Phones, subnet conflict error
Quote:
A simple mind delivers great solutions
RE: Connecting 1608 IP Phones, subnet conflict error
RE: Connecting 1608 IP Phones, subnet conflict error
I’m not insane, my mother had me tested!
RE: Connecting 1608 IP Phones, subnet conflict error
RE: Connecting 1608 IP Phones, subnet conflict error
Yeah all is programmed correctly on IPO!
Im onsite now and VLAN provided can not route out from router, VLAN 0 can, but can not see the PBX.
3hrs onsite and waiting for a fix.
RE: Connecting 1608 IP Phones, subnet conflict error
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.
Click Here to join Tek-Tips and talk with other members! Already a Member? Login
Источник
Subnet conflict avaya что это
Часовой пояс: UTC + 3 часа
Вопрос по Secondary IP-интерфейсе
Зарегистрирован: Чт янв 13, 2005 09:38
Сообщений: 189
Откуда: Минск
Зарегистрирован: Вс май 22, 2005 10:19
Сообщений: 895
Откуда: Moscow
DGS-3627G:admin#create ipif test1 192.168.0.1/24 V409
Command: create ipif test1 192.168.0.1/24 V409
DGS-3627G:admin#create ipif test2 192.168.1.1/24 V409 secondary
Command: create ipif test2 192.168.1.1/24 V409 secondary
DGS-3627G:admin#sh ipif
Command: show ipif
IP Interface : test1
VLAN Name : V409
Interface Admin State : Enabled
IPv4 Address : 192.168.0.1/24 (Manual) Primary
Proxy ARP : Disabled (Local : Disabled)
IP Directed Broadcast : Disabled
IPv4 State : Enabled
DHCPv6 Client State : Disabled
DHCPv6 Client PD State : Disabled
IP MTU : 1500
IP Interface : test2
VLAN Name : V409
Interface Admin State : Enabled
IPv4 Address : 192.168.1.1/24 (Manual) Secondary
Proxy ARP : Disabled (Local : Disabled)
IP Directed Broadcast : Disabled
IPv4 State : Enabled
IP MTU : 1500
Зарегистрирован: Чт янв 13, 2005 09:38
Сообщений: 189
Откуда: Минск
У меня к сожалению следующая картина
IP Interface : Net192_168
VLAN Name : default
Interface Admin State : Enabled
IPv4 Address : 192.168.2.251/24 (Manual) Primary
Proxy ARP : Disabled (Local : Disabled)
IP Directed Broadcast : Disabled
IPv4 State : Enabled
DHCPv6 Client State : Disabled
DHCPv6 Client PD State : Disabled
IP MTU : 1500
DGS-3627:admin#create ipif test 192.168.2.253/24 default secondary state disable
Command: create ipif test 192.168.2.253/24 default secondary state disable
conflicted subnet addresses
Зарегистрирован: Вт сен 04, 2007 01:32
Сообщений: 284
Откуда: Курск
Зарегистрирован: Чт янв 13, 2005 09:38
Сообщений: 189
Откуда: Минск
Зарегистрирован: Чт янв 13, 2005 09:38
Сообщений: 189
Откуда: Минск
Сотрудник D-LINK |
Зарегистрирован: Вт янв 18, 2011 13:29
Сообщений: 8999
Зарегистрирован: Чт янв 13, 2005 09:38
Сообщений: 189
Откуда: Минск
Часовой пояс: UTC + 3 часа
Кто сейчас на форуме
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 10
Источник
Вам также понравится
Adblock
detector
An IP (or Internet Protocol) address conflict occurs when two different systems on the same subnet are assigned or otherwise have their network interface configured to use the same IP address. It is possible to have two systems on different subnets configured with the same IP address, but not have a conflict occur due to routing limitations or because of the effects of NAT or Network Address Translation. Systems with the same IP Address on the same subnet need not have the same netmask or broadcast address for the conflict to occur.
Consequences of IP Address Conflicts
Systems handle IP address conflicts in multiple ways. In the past, many systems would simply act as if they were not in conflict, and connectivity to both or all systems would be intermittent and unreliable. In most modern operating systems, the second system to come online with the same IP address on the same subnet as another system would just disable their network interface and give an error until the situation is resolved by the administrator. This allows the original system to continue functioning without disruption, but completely breaks IP base communications for the second system. Of course, in production and critical environments, this result is preferred.
How IP Address Conflicts Cause Problems
IP address conflicts do not have a major impact on layer 3 or layer 7 communications (where most tcp/ip communications take place), but on the lower layer 2 protocols that layer 3 and above depend on. Once packets arrive to their destination network, or the subnet that the target system resides on, an ARP request is generated asking which system has the target IP address. If a routing or switching device that stores ARP information has this information cached in its ARP cache, that data is automatically used for decision making. If not, the first system responding to the request stating that it has the target IP address is added to the cache, and then packets are then forwarded to that host using its MAC (Media Access Control) address. Depending on system and network states or utilization, different systems may win the ARP response race, causing packets to be sent to one system at one time, and the other system other times. For IP communications this kind of reliability issue is unacceptable.
Resolving an IP Address Conflict
Resolving an IP address conflict is simple, merely assign one of the hosts a new, and not currently used IP address. Changing system IP addresses can have other consequences. It is common for commercial software licensing to be tied to a specific IP address. Other times, applications hard code IP addresses in their configuration files, causing application communication problems after an IP address change. Any time you change a system’s IP address, it is best to test all applications for due diligence.
Avoiding an IP Address Conflict
It is prudent to use some IP address assignment tracking method to determine which IP addresses have been assigned and are active. Spreadsheets, such as Microsoft Excel, are often used to track a small number of IP address assignments such as for a standard class C subnet (254 IP addresses or fewer). If you must track more than a single subnet, or larger subnets, it’s in your best interest to use a database application, or custom commercial software packages to assist in the tracking of information. In many cases, commercial packages for IP address management can be configured to also provide DNS management services as well. Understand your personal and organizational needs, and pick a solution that suits your situation.
Even in cases when management softwar is used to track IP address assignment, it is not uncommon for IP addresses to be assigned by employees, contractors and other personnel who do not have access to or concern for the IP address management solution. Before assigning an IP address to a system, always check to see if a system responds to that IP address by pinging it from a system with communication to the subnet the system would reside on. If a response to the ping is seen, assign a different IP address or resolve the conflict before placing the new system on the network.
Yes, and the good lesson here is to never ever use 192.168.0.0/24, 192.168.0.1/24 in corporate environment, just like never to use 802.1q VLAN ID 1.
But, there are cases when you can’t do anything. For those cases, OpenVPN starting from 2.4 supports internal stateless address translation (NAT), a.k.a. network mapping. From man openvpn
:
--client-nat snat|dnat network netmask alias
This pushable client option sets up a stateless one-to-one NAT rule on
packet addresses (not ports), and is useful in cases where routes or
ifconfig settings pushed to the client would create an IP numbering
conflict.
network/netmask (for example 192.168.0.0/255.255.0.0) defines the
local view of a resource from the client perspective, while
alias/netmask (for example 10.64.0.0/255.255.0.0) defines the remote
view from the server perspective.
Use snat (source NAT) for resources owned by the client and dnat
(destination NAT) for remote resources.
Set --verb 6 for debugging info showing the transformation of
src/dest addresses in packets.
So, you add a line into your client .conf file:
client-nat dnat 192.168.2.0 255.255.255.0 192.168.1.0
route 192.168.2.0 255.255.255.0
and then if your server-side has 192.168.1.5 system, the client will be able to access it as 192.168.2.5, resolving an addressing conflict. And so on.
@VinceCz wrote:
In fact I have a ZTE modem which is connected to a hub, this hub goes to wired network in each room, … all devices which are connected directly (wired) to the ZTE is in 10.0.0.xxx
As this all works, the ZTE is a router/modem.
@VinceCz wrote:
I want same IP mask before and after the router (Nighthawk R7000).
The R7000 in router mode is isolating, NATing, and firewalling — just like a NAT router is supposed to do. A router is to be used between the Internet/WAN port and the LAN. You can’t.
@VinceCz wrote:
…, including the R7000 + some others devices, printer, mycloud, tv, DNLA. I am facing lot of device sharing issues (one laptop does not see the printer, DLNA does not find mycloud, the tv cannot work with Internet) … , and all which is in WIFI is in 192.168.1.xxx. Hence trying to have all in 10.0.0.xxx even wifi devices, but not able to do the change. Also so far I didn’t do any tricky change
Issues predictable — you have two networks, to LANs. Even if you manage to configure the same IP subnet on both sides (the router Web UI is prohibiting for good reasons): The router is still a router and can’t work because it does not know which network you want to reach with the same addresses on both sides.
Correct config is always WAN/Internet [e.g. true Modem] <-> Router WAN/Internet Port <-> all the LAN
What is the plan, for what purpose have you bought the R7000 exactly? If the idea is just offering wireless, you might re-configure the R7000 as a plain wireless access point — check the documentation. Be aware that only one Ethernet port (typically the WAN/Internet port) might be workable for connecting the local network, all others don’t work or might be ridiculously slow. Be aware agin that consumer routers make poor wireless access points.
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS
Contact US
Thanks. We have received your request and will respond promptly.
Log In
Come Join Us!
Are you a
Computer / IT professional?
Join Tek-Tips Forums!
- Talk With Other Members
- Be Notified Of Responses
To Your Posts - Keyword Search
- One-Click Access To Your
Favorite Forums - Automated Signatures
On Your Posts - Best Of All, It’s Free!
*Tek-Tips’s functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.
Posting Guidelines
Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Students Click Here
IP Phone not registering with «Subnet Conflict» errorIP Phone not registering with «Subnet Conflict» error(OP) 11 Mar 10 14:11 We have an IP phone that wont register at a remote office connected via hardware VPN. IP Office IP Route in IP Office Remote Office Phone Statically assigned Is it my imagination but aren’t you normally OK with using the .7 subnet on the phone? Don’t remmeber ever seeing this error before. If yes what should be looking for on the network side to make this work? Red Flag SubmittedThank you for helping keep Tek-Tips Forums free from inappropriate posts. |
Join Tek-Tips® Today!
Join your peers on the Internet’s largest technical computer professional community.
It’s easy to join and it’s free.
Here’s Why Members Love Tek-Tips Forums:
Talk To Other Members
- Notification Of Responses To Questions
- Favorite Forums One Click Access
- Keyword Search Of All Posts, And More…
Register now while it’s still free!
Already a member? Close this window and log in.
Join Us Close
I have a CIDR block of 172.30.0.0/21 and need to create 2 private subnets and then 2 public subnets for it.
At first I created:
for private: [«172.30.8.0/21», «172.30.16.0/21»]
for public: [«172.30.0.0/22», «172.30.8.0/22»]
but then I got the following errors:
Error: Error creating subnet: InvalidSubnet.Range: The CIDR '172.30.8.0/22' is invalid.
10:59:12 status code: 400, request id: 9***
10:59:12
10:59:12 on .terraform/modules/vpc-us-west-2/main.tf line 335, in resource "aws_subnet" "public":
10:59:12 335: resource "aws_subnet" "public" {
10:59:12
10:59:12
10:59:12
10:59:12 Error: Error creating subnet: InvalidSubnet.Range: The CIDR '172.30.16.0/21' is invalid.
10:59:12 status code: 400, request id: d**
10:59:12
10:59:12 on .terraform/modules/vpc-us-west-2/main.tf line 363, in resource "aws_subnet" "private":
10:59:12 363: resource "aws_subnet" "private" {
10:59:12
10:59:12
10:59:12
10:59:12 Error: Error creating subnet: InvalidSubnet.Range: The CIDR '172.30.8.0/21' is invalid.
10:59:12 status code: 400, request id: d**
10:59:12
10:59:12 on .terraform/modules/vpc-us-west-2/main.tf line 363, in resource "aws_subnet" "private":
10:59:12 363: resource "aws_subnet" "private" {
So NOW:-
- I created:
for private:[«172.30.0.0/21», «172.30.4.0/21»]
for public: [«172.30.0.0/22», «172.30.2.0/22»]
are they fine? will they work and fix the errors?
- This is part of my code:
# List of private subnets to create in the environment, e.g. ["172.18.0.0/21", "172.18.8.0/21"]
variable "private_subnets-west-2" {
type = list(string)
default = ["172.30.0.0/22", "172.30.6.0/23"]
}
# List of public subnets to create in the environment, e.g. ["172.18.168.0/22", "172.18.172.0/22"]
variable "public_subnets-west-2" {
type = list(string)
default = ["172.30.0.0/22", "172.30.4.0/23"]
}
(the values currently in the subnets, I am not sure they work)
and these are the subnets I need to create. Again my CIDR is 172.30.0.0/21
Update: my private subnets work fine:
# List of private subnets to create in the environment, e.g. ["172.18.0.0/21", "172.18.8.0/21"]
variable "private_subnets-west-2" {
type = list(string)
default = ["172.30.0.0/22", "172.30.6.0/23"]
}
However, I have been trying different subnets for my public one’s since an hour now, and cannot find the proper ones:
# List of public subnets to create in the environment, e.g. ["172.18.168.0/22", "172.18.172.0/22"]
variable "public_subnets-west-2" {
type = list(string)
default = ["172.30.0.64/26", "172.30.0.128/26"]
}
keep on getting errors for conflict or invalid:
Error: Error creating subnet: InvalidSubnet.Conflict: The CIDR '172.30.0.128/26' conflicts with another subnet
status code: 400, request id:
on .terraform/modules/vpc-us-west-2/main.tf line 335, in resource "aws_subnet" "public":
335: resource "aws_subnet" "public" {
Error: Error creating subnet: InvalidSubnet.Conflict: The CIDR '172.30.0.64/26' conflicts with another subnet
status code: 400, request id:
on .terraform/modules/vpc-us-west-2/main.tf line 335, in resource "aws_subnet" "public":
335: resource "aws_subnet" "public" {
I have been stuck for long, if someone can help me and tell me exactly which 2 subnets I can use, it would be great help!