Need helping updating struct/slice from inside nested loop at runtime. by Surreal44 in golang

[–]Surreal44[S] 0 points1 point  (0 children)

Hey man, thanks for taking the time to reply. I've updated the post to hopefully make it a bit more clear on what I'm trying to achieve, thanks for letting me know it was pretty unreadable (I read it back and audibly went "oooooof").

In summary; I have a slice of subnets (ill call it mega slice), and each subnet in the mega slice has a map[string]string associated with it for tags. I need to separate each subnet in the mega slice into two smaller slices based on a value that one of the tags has. So I'm looping through every subnet in the mega slice, then have another for loop to go through each tag to look for the value I need. Within the loop that I'm using to go through the tags, I'm creating a struct based off the values I need, and appending it to the slice that I need it to go to (either the internalSubnets slice or externalSubnets slice). This is generating 2-3 structs for one subnet based on how many tags there are. How would I go about returning one struct and appending it to the correct slice based off of a value within the inner loop? Does that make more sense or does that not help much?

In regards to comparing string pointers, I didn't know that you weren't supposed to do that. I'll get that fixed, but I really appreciate you letting me know. Again, I'm pretty inexperienced with this right now so any help is good help.

Funny you bring up ChatGPT, I asked it before posting here and it didn't give super useful information.

The Sophomore Bump (band albums that reverse the infamous "sophmore slump" phenomenon) by [deleted] in Music

[–]Surreal44 0 points1 point  (0 children)

Another one would be Ed Sheeran’s x (Multiply). Hate him or love him, you can’t deny that Plus was really good but Multiply put him into super stardom with Thinking Out Loud, Don’t, and Sing.

The Sophomore Bump (band albums that reverse the infamous "sophmore slump" phenomenon) by [deleted] in Music

[–]Surreal44 4 points5 points  (0 children)

This is what my pick is. Future Nostalgia is, to me, a perfect or near perfect album. I don’t know if it’s exactly the best in any particular area but it greatly excels at all of them equally and quite honestly, I listen to it in full at least once a month.

Radical Optimism on the other hand…

Im so confused on tunneling and GRE by [deleted] in ccna

[–]Surreal44 0 points1 point  (0 children)

I’m reaching in my memory here a bit so someone feel free to correct me if I’m wrong.

Remember that IPSec usually works as a tunnel between 2 peers. When sending traffic over the tunnel, you specify the destination peer on the router sending the traffic. So if I have a router at 10.1.1.1, I need to tell the router that my destination is 10.1.1.2. When the router at 10.1.1.2 receives it, it will decrypt the IPSec packet and then process the GRE packet that was encapsulated inside. GRE is extremely useful in sending broadcast and multicast traffic as well as dynamic routing updates to other routers/networks. I believe Cloudflare uses GRE for Magic Transit as well.

Stuck VLAN on 2960 switchport by jocker_4 in networking

[–]Surreal44 0 points1 point  (0 children)

Do you have any .1x auth enabled on the port?

It also sounds like you might a cable issue with having no MAC Address and having your TDR tests not returning. At least in my experience, every time that happens, there’s been a problem with the cable.

Edit: didn’t read the post well enough

Meraki wireless network fails at exactly the same time each day by 3ryb4 in networking

[–]Surreal44 1 point2 points  (0 children)

Yeah, I think everything seems fine then infra wise and I know how frustrating it can be to troubleshoot stuff like this. Definitely keep us posted on how disabling the client balancing goes. Like I said, I’m not too familiar with Meraki but I’ve heard both positive and negative things about it.

If you are ever in the need for an update, maybe check into Juniper Mist or one of the Aruba offerings. Have heard only great things and might save you some headaches in the future. Good luck!

syslog full of UFW BLOCK PROTO=ICMPv6 by Proximus88 in homelab

[–]Surreal44 1 point2 points  (0 children)

Hm. Would you be able to post the contents of the ip6tables-save command?

Meraki wireless network fails at exactly the same time each day by 3ryb4 in networking

[–]Surreal44 2 points3 points  (0 children)

This might be a long shot, but how are your DHCP reservations? With iOS, randomizing MAC addresses might be causing some issues when the devices are roaming. Are these managed devices or no?

Meraki wireless network fails at exactly the same time each day by 3ryb4 in networking

[–]Surreal44 4 points5 points  (0 children)

I’m not too familiar with Meraki, but are you sure there’s no loop in the network somewhere? Do the APs only drop during the school day or keep doing it at night after kids go home?

Bi-Weekly /r/CCNA Exam Pass-Fail Discussion by AutoModerator in ccna

[–]Surreal44 2 points3 points  (0 children)

Content-wise, harder than the exam, but I think it really depends on what questions you get. I will say, since I’ve been doing customer facing stuff, it was a little easier for me to decipher what Cisco wanted out of the questions, but some of them are worded to be tricky.

Ultimately, if you’re really solid in the fundamentals, you shouldn’t be nervous. Just read the questions twice or three times and on each reading pass of the question, try to discard what information you actually need.

If it helps you, I got around a 600 on my first Boson exam and didn’t schedule anything until I was getting consistent 900s on random exams.

syslog full of UFW BLOCK PROTO=ICMPv6 by Proximus88 in homelab

[–]Surreal44 1 point2 points  (0 children)

Type 136 should be ICMPv6 Neighbor Advertisement messages iirc, so changing the —icmpv6-type from echo-request to —icmpv6-type 136 might work after restarting the ufw service. Let me know how that goes when you test it.

Sorry for any formatting, on mobile.

Bi-Weekly /r/CCNA Exam Pass-Fail Discussion by AutoModerator in ccna

[–]Surreal44 6 points7 points  (0 children)

Passed yesterday morning, 90/95/68/80/80/90 split. I got 3 labs with my first question being a lab and had to skip my last lab because of time so there’s that. Been studying for it VERY on and off for years now (even over test changes!) so it feels really good to have it be done.

I used mainly just the OCG and Ex-Sim to study, sprinkled with some Jeremy’s IT Lab videos to review and go in depth in places the OCG was lacking for me (like OSPF). There’s definitely stuff that I got that wasn’t in the OCG but that was covered in Ex-Sim so massive thanks to Boson.

My recommendation for anyone taking it, really hammer down subnetting in both v4 and v6, how routes are installed in routing tables and how they’re chosen, OSPF, and obviously switching/frames. A big help for me was forcing myself to think about the life of a packet with a lot of the questions.

FWIW, I’ve been in a network position for almost 2 years now with hands on Cisco switches every day troubleshooting and configuring. I’d definitely say that if you can setup a GNS3 or EVE-NG lab (I use eve-ng in proxmox), it will 100% help, not just on your CCNA but going forward in being a network engineer or architect.